aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index 0aea4d5..fface5f 100644
--- a/src/http.c
+++ b/src/http.c
@@ -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)
{