Changeset

11175:235537247aa3 0.11

Back out changeset 2c1583bb0e0f Same reason as 712b2e6a09d9
author Kim Alvefur <zash@zash.se>
date Thu, 15 Oct 2020 17:21:58 +0200
parents 11172:712b2e6a09d9
children 11176:b1af9a816ea8 11177:37dc2a6144d1
files util-src/strbitop.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/strbitop.c	Thu Oct 15 17:12:33 2020 +0200
+++ b/util-src/strbitop.c	Thu Oct 15 17:21:58 2020 +0200
@@ -20,6 +20,8 @@
 	const char *str_a = luaL_checklstring(L, 1, &a);
 	const char *str_b = luaL_checklstring(L, 2, &b);
 
+	luaL_buffinit(L, &buf);
+
 	if(a == 0 || b == 0) {
 		lua_settop(L, 1);
 		return 1;
@@ -39,6 +41,8 @@
 	const char *str_a = luaL_checklstring(L, 1, &a);
 	const char *str_b = luaL_checklstring(L, 2, &b);
 
+	luaL_buffinit(L, &buf);
+
 	if(a == 0 || b == 0) {
 		lua_settop(L, 1);
 		return 1;