[gtk+/wip/csd: 8/9] window: Ensure stack value is not used uninitialised for titleless windows
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csd: 8/9] window: Ensure stack value is not used uninitialised for titleless windows
- Date: Fri, 27 Jul 2012 11:04:19 +0000 (UTC)
commit 239da1864487b48927d247e15b0a0240fab6ec58
Author: Rob Bradford <rob linux intel com>
Date: Thu Apr 19 16:38:12 2012 +0100
window: Ensure stack value is not used uninitialised for titleless windows
The gtk_window_get_preferred_height function had an uninitialised variable in
the case of the window not having a title box (e.g. popup windows.)
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 647dadd..17a5096 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6748,7 +6748,7 @@ gtk_window_get_preferred_height (GtkWidget *widget,
GtkStyleContext *context;
GtkStateFlags state;
guint border_width;
- int title_min;
+ int title_min = 0;
window = GTK_WINDOW (widget);
priv = window->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]