Software /
code /
prosody
Changeset
11176:b1af9a816ea8
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 15 Oct 2020 17:23:21 +0200 |
parents | 11174:ddc17e9c66e4 (current diff) 11175:235537247aa3 (diff) |
children | 11178:44bcddecf1b5 |
files | |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;