Back out changeset 2c1583bb0e0f 0.11
authorKim Alvefur <zash@zash.se>
Thu, 15 Oct 2020 17:21:58 +0200
branch0.11
changeset 11179 235537247aa3
parent 11176 712b2e6a09d9
child 11180 b1af9a816ea8
child 11181 37dc2a6144d1
Back out changeset 2c1583bb0e0f Same reason as 712b2e6a09d9
util-src/strbitop.c
--- 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;