Require that the URI passed to katze_load_cached_icon be NULL

This commit is contained in:
Christian Dywan 2010-09-14 21:14:09 +02:00
parent edf3f95c8b
commit b80b97b787

View 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;