[Xfce4-commits] <midori:master> Don't assert if message_map lookup is negative

Christian Dywan noreply at xfce.org
Fri Apr 19 01:18:02 CEST 2013


Updating branch refs/heads/master
         to ead6936425852ddd52c9093b75da661d5b4558ef (commit)
       from 04d0ebf0ac2db02fb91ceea8be09a888f734d5ea (commit)

commit ead6936425852ddd52c9093b75da661d5b4558ef
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Apr 19 01:14:41 2013 +0200

    Don't assert if message_map lookup is negative

 midori/midori-locationaction.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index d51e197..12e8f52 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -1302,8 +1302,9 @@ midori_map_get_message (SoupMessage* message)
     if (message_map == NULL)
         message_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
     full = g_hash_table_lookup (message_map, uri->host);
-    g_return_val_if_fail (full, message);
-    return full;
+    if (full != NULL)
+        return full;
+    return message;
 }
 #endif
 


More information about the Xfce4-commits mailing list