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;