Commit ac6873fe573171f9d75aafed12a0b8ca8de5e82b
1 parent
b3413f40
fix initialization of search value
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -41,7 +41,7 @@ comp(const void * _a, const void * _b) |
41 | 41 | HttpHeader |
42 | 42 | httpHeaderGet(const HttpHeader * root, const char * name) |
43 | 43 | { |
44 | - struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, NULL}; | |
44 | + struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, {}, 0}; | |
45 | 45 | HttpHeader * found = tfind(&search, (void**)root, comp); |
46 | 46 | |
47 | 47 | return (NULL != found)? *found : NULL; | ... | ... |
Please
register
or
login
to post a comment