Proper struct initialization
Detected by clang -Wmissing-field-initializers
This commit is contained in:
parent
7099a4437e
commit
bc8dbfc9fd
12 changed files with 105 additions and 59 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue