diff --git a/devsupApp/src/setup.c b/devsupApp/src/setup.c index 02e5404..6a12ff1 100644 --- a/devsupApp/src/setup.c +++ b/devsupApp/src/setup.c @@ -66,6 +66,9 @@ void py(const char* code) { PyGILState_STATE state; + if(!code) + return; + state = PyGILState_Ensure(); if(PyRun_SimpleStringFlags(code, NULL)!=0) @@ -79,6 +82,9 @@ void pyfile(const char* file) FILE *fp; PyGILState_STATE state; + if(!file) + return; + state = PyGILState_Ensure(); fp = fopen(file, "r");