summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-23 07:54:29 +0000
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-23 07:54:29 +0000
commit2a270c017e51f041997da666c1d9bea2ab189380 (patch)
tree9eda13e1fbe9a74836679f7b26d889a4e5448b2a /src/irmd/main.c
parentcf97ff1b1971a676d04b6f0a16bb3c5bb53c933c (diff)
parent4bb18901fa222dc686886e7736e9935cfa1a4672 (diff)
downloadouroboros-2a270c017e51f041997da666c1d9bea2ab189380.tar.gz
ouroboros-2a270c017e51f041997da666c1d9bea2ab189380.zip
Merged in dstaesse/ouroboros/be-fix-build (pull request #270)
Some fixes
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c4
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)) {