Skip to content

Commit 35eb4e3

Browse files
authored
Merge pull request #343 from dpw13/dwagner/mutex_init
Fix a few uninitialized mutexes
2 parents ca73c22 + ec84c9f commit 35eb4e3

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/core/logger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static struct {
3434
.log_level = LOG_LEVEL_INFO,
3535
.console_logging = 1,
3636
.log_filename = "",
37+
.mutex = PTHREAD_MUTEX_INITIALIZER,
3738
.syslog_enabled = 0,
3839
.syslog_ident = "",
3940
.shutdown = 0,

src/core/logger_json.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ static struct {
2323
} json_logger = {
2424
.log_file = NULL,
2525
.log_filename = "",
26+
.mutex = PTHREAD_MUTEX_INITIALIZER,
2627
.initialized = 0
2728
};
2829

src/storage/storage_manager_streams_cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static stream_storage_cache_t cache = {
3838
.stream_count = 0,
3939
.last_update = 0,
4040
.ttl_seconds = 1800, // Default TTL: 30 minutes
41+
.mutex = PTHREAD_MUTEX_INITIALIZER,
4142
.initialized = 0
4243
};
4344

0 commit comments

Comments
 (0)