Fix logger initialization: remove unnecessary line and ensure proper return of logger structure.

This commit is contained in:
2025-05-18 19:07:31 +02:00
parent d83f2df60f
commit 39e72b33aa
+2
View File
@@ -15,6 +15,8 @@ Logger *initLogger(const char *_filename)
return NULL; return NULL;
} }
pthread_mutex_init(&logger_struct->lock, NULL); pthread_mutex_init(&logger_struct->lock, NULL);
return logger_struct;
} }
int logErrorEvent(Logger *_logger, const char *_message) int logErrorEvent(Logger *_logger, const char *_message)