Proper struct initialization

Detected by clang -Wmissing-field-initializers
This commit is contained in:
thorkill 2015-06-29 23:30:18 +02:00
parent 7099a4437e
commit bc8dbfc9fd
12 changed files with 105 additions and 59 deletions

View file

@ -179,7 +179,10 @@ static void age_past_requests(void *data) {
}
bool seen_request(const char *request) {
past_request_t *new, p = {NULL};
past_request_t *new, p;
new = NULL;
memset(&p, 0x0, sizeof(past_request_t));
p.request = request;