summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
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)) {