diff options
author | Timm Bäder <mail@baedert.org> | 2018-01-18 14:42:39 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-01-18 14:45:13 +0100 |
commit | cc9a4c17207e7bab3c09d608dc65ea8d445bc7e5 (patch) | |
tree | e5c6d590ee05f0c9dd64ff3283879dd1d1d29f3e | |
parent | d607312080607f18c1921ea9dd5cca7a5daa0bfd (diff) | |
download | gtk+-cc9a4c17207e7bab3c09d608dc65ea8d445bc7e5.tar.gz |
widget: Initialize a local variable
We will later pass this variable on to some other functions, so be safe
against them using the value.
-rw-r--r-- | gtk/gtkwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 2f1219925a..46ad98022d 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4513,7 +4513,7 @@ gtk_widget_size_allocate (GtkWidget *widget, gboolean size_changed; gboolean baseline_changed; gboolean position_changed; - gint natural_width, natural_height, dummy; + gint natural_width, natural_height, dummy = 0; gint min_width, min_height; GtkCssStyle *style; GtkBorder margin, border, padding; |