Clear evkeyvalq structs before use; fix crasher

This commit is contained in:
Julien BLACHE 2009-06-07 19:03:18 +02:00
parent 149d5432c6
commit 52d3fd1064
2 changed files with 4 additions and 0 deletions

View File

@ -1785,6 +1785,8 @@ daap_request(struct evhttp_request *req)
int ret;
int i;
memset(&query, 0, sizeof(struct evkeyvalq));
full_uri = httpd_fixup_uri(req);
if (!full_uri)
{

View File

@ -882,6 +882,8 @@ rsp_request(struct evhttp_request *req)
int i;
int ret;
memset(&query, 0, sizeof(struct evkeyvalq));
full_uri = httpd_fixup_uri(req);
if (!full_uri)
{