diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-19 20:23:17 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-07-19 20:23:17 +0200 |
commit | 413cf79402ff29690301e886176a154f766c7551 (patch) | |
tree | b65a28c46bf7609289edec33aabfff90be5f52dd | |
parent | ccc18a18b671e64eeae4f753f099af114c044979 (diff) | |
download | litheweb-413cf79402ff29690301e886176a154f766c7551.tar.gz litheweb-413cf79402ff29690301e886176a154f766c7551.tar.bz2 |
...
-rw-r--r-- | picohttp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] ) |