diff options
author | James Willcox <jwillcox@gnome.org> | 2003-03-24 07:56:53 +0800 |
---|---|---|
committer | James Willcox <jwillcox@src.gnome.org> | 2003-03-24 07:56:53 +0800 |
commit | cea22c828818c7a9555a496840efccee215d490f (patch) | |
tree | 27a4aa7fc79b12ce3559effd32cb1dfcbe311a3c /lib/ephy-autocompletion.c | |
parent | cfaf78f79dbbbe93fb588bc4c9d645697b5a949f (diff) | |
download | gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar.gz gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar.bz2 gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar.lz gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar.xz gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.tar.zst gsoc2013-epiphany-cea22c828818c7a9555a496840efccee215d490f.zip |
Guard against "item" being NULL. Fixes a crash when typing in the location
2003-03-23 James Willcox <jwillcox@gnome.org>
* lib/ephy-autocompletion.c:
(ephy_autocompletion_update_matches_full_item):
Guard against "item" being NULL. Fixes a crash when typing in the
location bar.
Diffstat (limited to 'lib/ephy-autocompletion.c')
-rw-r--r-- | lib/ephy-autocompletion.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-autocompletion.c b/lib/ephy-autocompletion.c index 5a67be64c..b2b79d5f3 100644 --- a/lib/ephy-autocompletion.c +++ b/lib/ephy-autocompletion.c @@ -341,6 +341,8 @@ ephy_autocompletion_update_matches_full_item (EphyAutocompletionSource *source, guint32 score, EphyAutocompletionPrivate *p) { + g_return_if_fail (item != NULL); + if (is_action || (substring && g_strrstr (item, p->keys[0])) || (substring && g_strrstr (title, p->keys[0]))) |