diff --git a/uwsgi.c b/uwsgi.c index 13dac40c..da261876 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -1454,8 +1454,8 @@ int main(int argc, char *argv[], char *envp[]) { } } - // reinitialize the random seed (thanks Jonas Borgström) PyObject *random_module = PyImport_ImportModule("random"); + // reinitialize the random seed (thanks Jonas Borgström) if (random_module) { PyObject *random_dict = PyModule_GetDict(random_module); if (random_dict) {