From b80b97b7877f8f51458fc8cb1527de0b25a780fb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 14 Sep 2010 21:14:09 +0200 Subject: [PATCH] Require that the URI passed to katze_load_cached_icon be NULL --- katze/katze-utils.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5