diff options
-rw-r--r-- | src/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -720,6 +720,8 @@ static int StripArgs(httpRequest *request, char *request_uri) if(value) { + httpArg *argument; + *value = 0; value++; @@ -728,7 +730,7 @@ static int StripArgs(httpRequest *request, char *request_uri) Decode(token); Decode(value); - httpArg *argument = (httpArg *)malloc(sizeof(httpArg)); + argument = (httpArg *)malloc(sizeof(httpArg)); if(argument) { |