# HG changeset patch # User Kim Alvefur # Date 1602775318 -7200 # Node ID 235537247aa3574e5dd0e0efe91f47262e8e23d7 # Parent 712b2e6a09d95ca98cab0dc2128e43736d8ceff7 Back out changeset 2c1583bb0e0f Same reason as 712b2e6a09d9 diff -r 712b2e6a09d9 -r 235537247aa3 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;