diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-03-15 19:51:15 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-03-15 19:51:15 -0300 |
commit | 7e0389b638a924620912626788e12ad70768931f (patch) | |
tree | dbbc0a86a8cef2fc7be28b2adec49095a488ea73 /src/lua.c | |
parent | c2cd0390e12193fb34b334cde22a4336d1ca4c6c (diff) |
Avoid segfault in bail function
Diffstat (limited to 'src/lua.c')
-rw-r--r-- | src/lua.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -42,9 +42,8 @@ extern WINDOW * input_win; lua_State *L; void bail(lua_State *L, char *msg){ - sc_debug("FATAL ERROR: %s: %s", - msg, lua_tostring(L, -1)); - exit_app(1); + sc_debug("FATAL ERROR: %s: %s", msg, lua_tostring(L, -1)); + //exit(1); shall exit here? } static int l_getnum (lua_State *L) { |