[gtk+] GtkLabel: Remove an unnecessary check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkLabel: Remove an unnecessary check
- Date: Fri, 17 Jul 2015 22:45:14 +0000 (UTC)
commit 6a9944cbc57be5b17208a93dc296f83019ad4dd9
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 17 18:39:14 2015 -0400
GtkLabel: Remove an unnecessary check
Coverity has the annoying habit of guessing backwards that
if we check the value here, it might be NULL earlier.
gtk/gtklabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index fd8da41..81e798a 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -5363,7 +5363,7 @@ gtk_label_create_window (GtkLabel *label)
GDK_BUTTON_MOTION_MASK |
GDK_POINTER_MOTION_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
- if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
+ if (gtk_widget_is_sensitive (widget) && priv->select_info->selectable)
{
attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
GDK_XTERM);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]