From ce8dc5186127ae175610366671a30d69625ebaa9 Mon Sep 17 00:00:00 2001 From: Sebastien Lafargue Date: Thu, 18 Dec 2014 21:00:45 +0100 Subject: [PATCH] gtktextlayout: fix to quiet a warning Gcc complains about a possible use of a not initialised widget ref ( which can't happen in reality ) https://bugzilla.gnome.org/show_bug.cgi?id=741702 --- gtk/gtktextlayout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 55a0e1254b..da3a0e8de2 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1640,7 +1640,7 @@ add_child_attrs (GtkTextLayout *layout, PangoRectangle logical_rect; gint width, height; GSList *tmp_list; - GtkWidget *widget; + GtkWidget *widget = NULL; width = 1; height = 1;