summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-02-10 19:19:54 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-02-10 19:19:54 +0000
commit5ffc0826ed2e15738ce2e7e16a70d85a8e226c18 (patch)
treedc7b680490b8a06b34a6022a746cf8e9e04c5446 /gtk/gtkentrycompletion.c
parentd47f64aca9b64eb0002fb2d758e6628544ffa2c4 (diff)
downloadgtk+-5ffc0826ed2e15738ce2e7e16a70d85a8e226c18.tar.gz
Guard against NULL. (#330177, Raphael Slinckx)
2006-02-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected): Guard against NULL. (#330177, Raphael Slinckx)
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 7ebfe5b1eb..e9e923869b 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1488,7 +1488,7 @@ gtk_entry_completion_match_selected (GtkEntryCompletion *completion,
gchar *str = NULL;
gtk_tree_model_get (model, iter, completion->priv->text_column, &str, -1);
- gtk_entry_set_text (GTK_ENTRY (completion->priv->entry), str);
+ gtk_entry_set_text (GTK_ENTRY (completion->priv->entry), str ? str : "");
/* move cursor to the end */
gtk_editable_set_position (GTK_EDITABLE (completion->priv->entry), -1);