Avoid a warning

This commit is contained in:
Pierre Pronchery 2011-02-19 12:58:39 +00:00
parent 955d1a5afb
commit 4e493c3af1

View File

@ -23,12 +23,13 @@
/* ghtml_make_url */
static gchar * _ghtml_make_url(gchar const * base, gchar const * url)
{
int d;
char * b;
char * p;
if(url == NULL)
return NULL;
for(; isspace(*url); url++);
for(; (d = *url) != '\0' && isspace(d); url++);
/* XXX use a more generic protocol finder (strchr(':')) */
if(strncmp("about:", url, 6) == 0)
return g_strdup(url);