summaryrefslogtreecommitdiffstats
path: root/src/lua.c
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-03-15 19:51:15 -0300
committerandmarti1424 <andmarti@gmail.com>2017-03-15 19:51:15 -0300
commit7e0389b638a924620912626788e12ad70768931f (patch)
treedbbc0a86a8cef2fc7be28b2adec49095a488ea73 /src/lua.c
parentc2cd0390e12193fb34b334cde22a4336d1ca4c6c (diff)
Avoid segfault in bail function
Diffstat (limited to 'src/lua.c')
-rw-r--r--src/lua.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua.c b/src/lua.c
index d706caf..2ba0532 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -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) {