aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index 00989c5..0aea4d5 100644
--- a/src/http.c
+++ b/src/http.c
@@ -702,6 +702,7 @@ static int StripArgs(httpRequest *request, char *request_uri)
/* Do we have arguments ? */
if((position = strchr(request_uri, '?')))
{
+ char *token;
/* Mark the end of the URI */
*position = 0;
@@ -711,7 +712,7 @@ static int StripArgs(httpRequest *request, char *request_uri)
/* Parse the argument list */
position++;
- char *token = strtok(position, "&");
+ token = strtok(position, "&");
while(token)
{