-const char filters_rcs[] = "$Id: filters.c,v 1.152 2011/10/30 16:18:12 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.153 2011/10/30 16:20:12 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
log_error(LOG_LEVEL_ERROR, "Unable to decode \"%s\".", token);
continue;
}
- char *h1 = strstr(dtoken, "http://");
- char *h2 = strstr(dtoken, "https://");
- char *h = (h1 && h2
- ? (h1 < h2 ? h1 : h2)
- : (h1 ? h1 : h2));
- if (h)
+ char *http_url = strstr(dtoken, "http://");
+ char *https_url = strstr(dtoken, "https://");
+ char *last_url = (http_url && https_url
+ ? (http_url < https_url ? http_url : https_url)
+ : (http_url ? http_url : https_url));
+ if (last_url)
{
freez(found);
- found = strdup(h);
+ found = strdup(last_url);
if (found == NULL)
{
log_error(LOG_LEVEL_ERROR,