[epiphany] ephy-embed-utils: protect against NULL address in method



commit 4c73c88d7742563dc16fd303f903f34ee0d8dde1
Author: Xan Lopez <xan igalia com>
Date:   Tue Feb 12 18:18:44 2013 +0100

    ephy-embed-utils: protect against NULL address in method

 embed/ephy-embed-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 1622afc..626c1bd 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -175,6 +175,10 @@ gboolean
 ephy_embed_utils_is_no_show_address (const char *address)
 {
   int i;
+
+  if (!address)
+    return FALSE;
+
   for (i = 0; do_not_show_address[i]; i++)
     if (g_str_equal (address, do_not_show_address[i]))
       return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]