diff --git a/CLI/Repl.cpp b/CLI/Repl.cpp index 2fd3d1f2..b2575272 100644 --- a/CLI/Repl.cpp +++ b/CLI/Repl.cpp @@ -63,7 +63,7 @@ static lua_State* replState = NULL; #ifdef _WIN32 BOOL WINAPI sigintHandler(DWORD signal) { - if (signal == CTRL_C_EVENT && replState + if (signal == CTRL_C_EVENT && replState) lua_callbacks(replState)->interrupt = &sigintCallback; return TRUE; }