diff options
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |