Software /
code /
prosody
Diff
util-src/strbitop.c @ 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 |
parent | 11172:712b2e6a09d9 |
child | 12469:2b3adaa6d38e |
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;