[gtk+] entrycompletion: Remove unnecessary NULL check
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entrycompletion: Remove unnecessary NULL check
- Date: Sat, 18 Mar 2017 06:20:41 +0000 (UTC)
commit c7c9a0ee51ae88099997fa9279a2cfdcc4da6dad
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 18 07:13:13 2017 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index b5404d5..15b0976 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]