diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-10-11 03:16:00 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-10-11 03:16:00 +0800 |
commit | 056ff0acf2526eae98edf45cef9448b361046c33 (patch) | |
tree | d71894641d17b9da1fd973b9cb07f6c5df150e11 /www/epiphany | |
parent | 73056aa927dade011c1aa7639111a61a7f385f5f (diff) | |
download | marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar.gz marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar.bz2 marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar.lz marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar.xz marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.tar.zst marcuscom-ports-056ff0acf2526eae98edf45cef9448b361046c33.zip |
Make sure we don't dereference a NULL pointer.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14807 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/epiphany')
-rw-r--r-- | www/epiphany/Makefile | 4 | ||||
-rw-r--r-- | www/epiphany/files/patch-embed_ephy-embed-prefs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile index 0c3f7995b..8cd091b05 100644 --- a/www/epiphany/Makefile +++ b/www/epiphany/Makefile @@ -3,12 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/www/epiphany/Makefile,v 1.238 2010/10/04 19:35:32 kwm Exp $ +# $MCom: ports/www/epiphany/Makefile,v 1.239 2010/10/04 19:41:15 kwm Exp $ # PORTNAME= epiphany PORTVERSION= 2.30.6 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= www gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/www/epiphany/files/patch-embed_ephy-embed-prefs.c b/www/epiphany/files/patch-embed_ephy-embed-prefs.c index 2f361fc44..197a26478 100644 --- a/www/epiphany/files/patch-embed_ephy-embed-prefs.c +++ b/www/epiphany/files/patch-embed_ephy-embed-prefs.c @@ -6,7 +6,7 @@ /* Update Soup session */ - session = webkit_get_default_session (); - g_object_set (G_OBJECT (session), webkit_pref, langs_str, NULL); -+ if (strlen (langs_str) > 0) { ++ if (langs_str != NULL && strlen (langs_str) > 0) { + session = webkit_get_default_session (); + g_object_set (G_OBJECT (session), webkit_pref, langs_str, NULL); + } |