Python: Fix uninitialized variable

This commit is contained in:
Vicki Pfau 2017-05-31 17:01:50 -07:00
parent 6fe1f44351
commit 06d89aee48
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ static void _pyLogShim(struct mLogger* logger, int category, enum mLogLevel leve
struct mLogger* mLoggerPythonCreate(void* pyobj) {
struct mLoggerPy* logger = malloc(sizeof(*logger));
logger->d.log = _pyLogShim;
logger->d.filter = NULL;
logger->pyobj = pyobj;
return &logger->d;
}