]> spindle.queued.net Git - midori/commitdiff
Require that the URI passed to katze_load_cached_icon be NULL
authorChristian Dywan <christian@twotoasts.de>
Tue, 14 Sep 2010 19:14:09 +0000 (21:14 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 15 Sep 2010 02:10:54 +0000 (04:10 +0200)
katze/katze-utils.c

index cde823485a316ee35414ab7861d31ff3acde1cdf..5d12592b13e1dbee0e7679d2f4ab0569c10e466f 100644 (file)
@@ -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;