From c7c9a0ee51ae88099997fa9279a2cfdcc4da6dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 18 Mar 2017 07:13:13 +0100 Subject: [PATCH] entrycompletion: Remove unnecessary NULL check completion really shouldn't be NULL at this point, especially since it gets dereferenced higher up in the function. --- gtk/gtkentrycompletion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;