From: Christian Dywan Date: Tue, 14 Sep 2010 19:14:09 +0000 (+0200) Subject: Require that the URI passed to katze_load_cached_icon be NULL X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b80b97b7877f8f51458fc8cb1527de0b25a780fb;p=midori Require that the URI passed to katze_load_cached_icon be NULL --- diff --git a/katze/katze-utils.c b/katze/katze-utils.c index cde82348..5d12592b 100644 --- a/katze/katze-utils.c +++ b/katze/katze-utils.c @@ -1495,6 +1495,8 @@ katze_load_cached_icon (const gchar* uri, { GdkPixbuf* icon = NULL; + g_return_val_if_fail (uri != NULL, NULL); + if (g_str_has_prefix (uri, "http://") || g_str_has_prefix (uri,"https://")) { guint i;