Skip to content

Commit

Permalink
DMC-1104: add check for null pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-manzi committed Oct 13, 2018
1 parent 3890fd0 commit dbd21b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoggingHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dbd21b9

Please sign in to comment.