diff options
author | Sander Vrijders <[email protected]> | 2016-10-23 07:54:29 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-10-23 07:54:29 +0000 |
commit | 2a270c017e51f041997da666c1d9bea2ab189380 (patch) | |
tree | 9eda13e1fbe9a74836679f7b26d889a4e5448b2a /src/irmd | |
parent | cf97ff1b1971a676d04b6f0a16bb3c5bb53c933c (diff) | |
parent | 4bb18901fa222dc686886e7736e9935cfa1a4672 (diff) | |
download | ouroboros-2a270c017e51f041997da666c1d9bea2ab189380.tar.gz ouroboros-2a270c017e51f041997da666c1d9bea2ab189380.zip |
Merged in dstaesse/ouroboros/be-fix-build (pull request #270)
Some fixes
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index 4dee4b91..390681a8 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1993,7 +1993,7 @@ void * mainloop(void * o) static int irm_create(void) { - struct stat st = {0}; + struct stat st; struct timeval timeout = {(IRMD_ACCEPT_TIMEOUT / 1000), (IRMD_ACCEPT_TIMEOUT % 1000) * 1000}; @@ -2001,6 +2001,8 @@ static int irm_create(void) if (irmd == NULL) return -ENOMEM; + memset(&st, 0, sizeof(st)); + irmd->state = IRMD_NULL; if (pthread_rwlock_init(&irmd->state_lock, NULL)) { |