# HG changeset patch # User Kim Alvefur # Date 1602775401 -7200 # Node ID b1af9a816ea8721a9e130f72e4c48769e76ac37a # Parent ddc17e9c66e40c0afe6be67422461dbda2ee587f# Parent 235537247aa3574e5dd0e0efe91f47262e8e23d7 Merge 0.11->trunk diff -r ddc17e9c66e4 -r b1af9a816ea8 util-src/strbitop.c --- a/util-src/strbitop.c Sat Sep 07 13:38:02 2019 +0200 +++ b/util-src/strbitop.c Thu Oct 15 17:23:21 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;