summaryrefslogtreecommitdiffstats
path: root/src/lua.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-12-02 11:01:28 -0300
committerandmarti1424 <andmarti@gmail.com>2017-12-02 11:01:28 -0300
commit9369750bad0eb8098ce06f42b4dc814e9001d54e (patch)
treec6535ae9c6c62ae706929067c667675ae1a889ac /src/lua.c
parentd2a63fcf08a266a5af956d6baa3284cd65f515d6 (diff)
Prevent some warnings during build
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c
index fd2aad3..fd54bb5 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -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;
}