summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-03-18 07:13:13 +0100
committerTimm Bäder <mail@baedert.org>2017-03-18 07:13:13 +0100
commitc7c9a0ee51ae88099997fa9279a2cfdcc4da6dad (patch)
tree5159e7a5201e344d2ffe1099a7e19bcc91d8888a /gtk/gtkentrycompletion.c
parent53f0c2626ef8aa95f8223c75c36474e3a047cd2e (diff)
downloadgtk+-c7c9a0ee51ae88099997fa9279a2cfdcc4da6dad.tar.gz
entrycompletion: Remove unnecessary NULL check
completion really shouldn't be NULL at this point, especially since it gets dereferenced higher up in the function.
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 b5404d52b7..15b097691e 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -2228,7 +2228,7 @@ gtk_entry_completion_key_press (GtkWidget *widget,
event->keyval == GDK_KEY_ISO_Enter ||
event->keyval == GDK_KEY_Escape)
{
- if (completion && completion->priv->completion_timeout)
+ if (completion->priv->completion_timeout)
{
g_source_remove (completion->priv->completion_timeout);
completion->priv->completion_timeout = 0;