diff options
author | Xan Lopez <xan@igalia.com> | 2013-02-13 01:18:44 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-02-13 01:18:44 +0800 |
commit | 4c73c88d7742563dc16fd303f903f34ee0d8dde1 (patch) | |
tree | 98cb878ab3b6c48820bc0fde71c1766d28159beb /embed | |
parent | 2dbd0a472b1a83fc2b84f3789f457819a326e60f (diff) | |
download | gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar.gz gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar.bz2 gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar.lz gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar.xz gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.tar.zst gsoc2013-epiphany-4c73c88d7742563dc16fd303f903f34ee0d8dde1.zip |
ephy-embed-utils: protect against NULL address in method
Diffstat (limited to 'embed')
-rw-r--r-- | 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 1622afc05..626c1bd9e 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; |