From 413cf79402ff29690301e886176a154f766c7551 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Fri, 19 Jul 2013 20:23:17 +0200 Subject: ... --- picohttp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/picohttp.c b/picohttp.c index 6ecc528..9b04e64 100644 --- a/picohttp.c +++ b/picohttp.c @@ -801,8 +801,8 @@ static int picohttpProcessHeaders ( char headername[PICOHTTP_HEADERNAME_MAX_LEN+1] = {0,}; #define PICOHTTP_HEADERVALUE_MAX_LEN 224 char headervalue[PICOHTTP_HEADERVALUE_MAX_LEN+1] = {0,}; - char *hn; - char *hv; + char *hn = headername; + char *hv = headervalue; /* TODO: Add Header handling here */ while( !picohttpIsCRLF(ch) ) { @@ -1134,7 +1134,7 @@ replay: if( 0 == mp->req->query.multipartboundary[mp->in_boundary+1] ) { mp->in_boundary = 0; /* matched boundary */ - char trail[2] = {0, 0}; + int trail[2] = {0, 0}; for(int i=0; i<2; i++) { trail[i] = picohttpGetch(mp->req); if( 0 > trail[i] ) -- cgit v1.2.3