summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-06-19 21:20:56 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-06-19 21:20:56 +0000
commitcb7144f250a01ef083adf4ce72b01bdfa64d1a5e (patch)
treea9620828b87865dcb90070a593a349a43dd66c40 /gtk/gtkentrycompletion.c
parent894b902206897ffeeac75a6f9f67b240f9bcf323 (diff)
downloadgdk-pixbuf-cb7144f250a01ef083adf4ce72b01bdfa64d1a5e.tar.gz
Don't call g_str_has_prefix on a NULL strung. (#344897, Tommi Komulainen)
* gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix): Don't call g_str_has_prefix on a NULL strung. (#344897, Tommi Komulainen)
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 34d9bd099..46bc7ffad 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1486,7 +1486,7 @@ gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion)
&iter, completion->priv->text_column, &text,
-1);
- if (g_str_has_prefix (text, key))
+ if (text && g_str_has_prefix (text, key))
{
if (!prefix)
prefix = g_strdup (text);