diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-12-02 11:01:28 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-12-02 11:01:28 -0300 |
commit | 9369750bad0eb8098ce06f42b4dc814e9001d54e (patch) | |
tree | c6535ae9c6c62ae706929067c667675ae1a889ac /src/lua.c | |
parent | d2a63fcf08a266a5af956d6baa3284cd65f515d6 (diff) |
Prevent some warnings during build
Diffstat (limited to 'src/lua.c')
-rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +281,7 @@ int l_query (lua_State *L) { ret = ui_query(val); //sc_debug("return of query:%s.\n", ret); - if (ret == '\0') { + if (ret != NULL && ret[0] == '\0') { free(ret); return 0; } |