From fb1a8fd63199b5834f6aba72ab50227f7ffb6216 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 19:26:42 +0200 Subject: [PATCH] Initialize variables in protocol.c --- src/protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index f533a932..e5febc21 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -179,7 +179,8 @@ static void age_past_requests(void *data) { } bool seen_request(const char *request) { - past_request_t *new, p = {NULL}; + past_request_t *new, p; + memset(&p, 0x0, sizeof(past_request_t)); p.request = request;