From 4e493c3af150fb26cb5774e18fdc267c49f89209 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 19 Feb 2011 12:58:39 +0000 Subject: [PATCH] Avoid a warning --- src/common/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/url.c b/src/common/url.c index 2472f06..9590bae 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -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);