summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-11-20 17:32:32 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-03-09 13:41:37 +0000
commitc7f5f10853b3edeabcd4a4374417afa8e54d55a0 (patch)
tree30ba0990b84a7951976518b32fa0dcc27bbe9dfa
parent61c46d911ff0840752bf8aa595d42da012d5d7b7 (diff)
downloadgtk+-c7f5f10853b3edeabcd4a4374417afa8e54d55a0.tar.gz
gtknotebook: Fix a potential NULL pointer dereference
Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
-rw-r--r--gtk/gtknotebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 3de4692cc1..9217f12ec8 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2637,7 +2637,7 @@ gtk_notebook_draw (GtkWidget *widget,
}
}
- if (priv->operation == DRAG_OPERATION_REORDER &&
+ if (priv->cur_page && priv->operation == DRAG_OPERATION_REORDER &&
gtk_cairo_should_draw_window (cr, priv->drag_window))
{
cairo_save (cr);