Commit dbd21b9d authored by Andrea Manzi's avatar Andrea Manzi

DMC-1104: add check for null pointers

parent 3890fd0a
......@@ -24,7 +24,7 @@ static PyObject* get_logger(const char *name = "gfal2")
static char format[] = "s";
PyObject* logging = PyImport_ImportModule("logging");
PyObject* getLogger * = NULL;
PyObject* getLogger = NULL;
if (logging != NULL) {
getLogger = PyObject_GetAttrString(logging, "getLogger");
} else return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment