Browse Source

fix initialization of search value

master
Georg Hopp 14 years ago
parent
commit
ac6873fe57
  1. 2
      src/http/header/get.c

2
src/http/header/get.c

@ -41,7 +41,7 @@ comp(const void * _a, const void * _b)
HttpHeader
httpHeaderGet(const HttpHeader * root, const char * name)
{
struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, NULL};
struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, {}, 0};
HttpHeader * found = tfind(&search, (void**)root, comp);
return (NULL != found)? *found : NULL;

Loading…
Cancel
Save