From ac6873fe573171f9d75aafed12a0b8ca8de5e82b Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 23 Feb 2012 00:05:25 +0100 Subject: [PATCH] fix initialization of search value --- src/http/header/get.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/header/get.c b/src/http/header/get.c index 1b37eb2..3a56737 100644 --- a/src/http/header/get.c +++ b/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;