diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-19 21:20:56 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-19 21:20:56 +0000 |
commit | cb7144f250a01ef083adf4ce72b01bdfa64d1a5e (patch) | |
tree | a9620828b87865dcb90070a593a349a43dd66c40 /gtk/gtkentrycompletion.c | |
parent | 894b902206897ffeeac75a6f9f67b240f9bcf323 (diff) | |
download | gtk+-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 34d9bd0998..46bc7ffad7 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); |