aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-18 00:40:12 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-18 00:40:12 +0800
commit823bd8b103ffefdd465a10eb1ce7a5351880b04e (patch)
tree70a7237fd1d0904babbe2029ec7870a5c0e2976d /src/bookmarks
parentf084289ad0ec8e1a6c128b379fa00c0eed1eb97b (diff)
downloadgsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.gz
gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.zst
gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.zip
Make sure the option is in the right option group.
2005-07-17 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks.c: (get_option): Make sure the option is in the right option group.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index e934cad9f..7f50f48a6 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -1298,7 +1298,7 @@ get_option (char *start,
*optionsend = end + 1;
start = strstr (start, name);
- if (start == NULL) return NULL;
+ if (start == NULL || start > end) return NULL;
start += strlen (name);
/* Find end of option, either ',' or '}' */