'subject' is already strdup()'d so there's no need
to make another temporary copy for strtok().
-const char filters_rcs[] = "$Id: filters.c,v 1.146 2011/10/30 16:15:29 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.147 2011/10/30 16:15:43 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
* Keep the last one we spot.
*/
char *found = NULL;
* Keep the last one we spot.
*/
char *found = NULL;
- char *s = strdup(subject);
- char *token = strtok(s, "?&");
+ char *token = strtok(subject, "?&");
while (token)
{
char *dtoken = url_decode(token);
while (token)
{
char *dtoken = url_decode(token);
}
token = strtok(NULL, "?&");
}
}
token = strtok(NULL, "?&");
}