diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-18 00:40:12 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-18 00:40:12 +0800 |
commit | 823bd8b103ffefdd465a10eb1ce7a5351880b04e (patch) | |
tree | 70a7237fd1d0904babbe2029ec7870a5c0e2976d | |
parent | f084289ad0ec8e1a6c128b379fa00c0eed1eb97b (diff) | |
download | gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.gz gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.bz2 gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.lz gsoc2013-epiphany-823bd8b103ffefdd465a10eb1ce7a5351880b04e.tar.xz 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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 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. + +2005-07-17 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-bookmarks.c: (get_option), (ephy_bookmarks_get_smart_bookmark_width): 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 '}' */ |