Fix logger initialization: remove unnecessary line and ensure proper return of logger structure.
This commit is contained in:
@@ -15,6 +15,8 @@ Logger *initLogger(const char *_filename)
|
||||
return NULL;
|
||||
}
|
||||
pthread_mutex_init(&logger_struct->lock, NULL);
|
||||
|
||||
return logger_struct;
|
||||
}
|
||||
|
||||
int logErrorEvent(Logger *_logger, const char *_message)
|
||||
|
||||
Reference in New Issue
Block a user