From 924130b40a503fc633799189fa882b6badcb76af Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Mon, 29 Jan 2018 17:38:36 +1000 Subject: [PATCH] fix uninitialized variable --- src/lua_glue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua_glue.c b/src/lua_glue.c index 88d9108..ab335c7 100644 --- a/src/lua_glue.c +++ b/src/lua_glue.c @@ -489,6 +489,8 @@ int l_postMessage(lua_State *L) { msg = (char *)malloc(strlen(body) + 2 + strlen(buffer)); + j = 0; + for (i=0;i