[Xfce4-commits] <midori:master> Require that the URI passed to katze_load_cached_icon be NULL

Christian Dywan noreply at xfce.org
Wed Sep 15 04:12:01 CEST 2010


Updating branch refs/heads/master
         to b80b97b7877f8f51458fc8cb1527de0b25a780fb (commit)
       from edf3f95c8b565e093dabe81eb627371789f1bd3c (commit)

commit b80b97b7877f8f51458fc8cb1527de0b25a780fb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Sep 14 21:14:09 2010 +0200

    Require that the URI passed to katze_load_cached_icon be NULL

 katze/katze-utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index cde8234..5d12592 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;



More information about the Xfce4-commits mailing list