aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--lib/ephy-autocompletion.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f66a8f83..6da9560a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2003-03-23 David Bordoley <bordoley@msu.edu>
* src/bookmarks/ephy-bookmarks-editor.c:
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])))