fix uninitialized variable
This commit is contained in:
parent
ebc815e6b1
commit
924130b40a
@ -489,6 +489,8 @@ int l_postMessage(lua_State *L) {
|
|||||||
|
|
||||||
msg = (char *)malloc(strlen(body) + 2 + strlen(buffer));
|
msg = (char *)malloc(strlen(body) + 2 + strlen(buffer));
|
||||||
|
|
||||||
|
j = 0;
|
||||||
|
|
||||||
for (i=0;i<strlen(body);i++) {
|
for (i=0;i<strlen(body);i++) {
|
||||||
if (body[i] == '\n') {
|
if (body[i] == '\n') {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user