[gtk+/gtk-3-14] gtktextlayout: fix to quiet a warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] gtktextlayout: fix to quiet a warning
- Date: Sun, 11 Jan 2015 02:53:42 +0000 (UTC)
commit f42f12e77525e832c201f6f45789a22f351a81ba
Author: Sebastien Lafargue <slafargue gnome org>
Date: Thu Dec 18 21:00:45 2014 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 5019cf0..80207a6 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -1622,7 +1622,7 @@ add_child_attrs (GtkTextLayout *layout,
PangoRectangle logical_rect;
gint width, height;
GSList *tmp_list;
- GtkWidget *widget;
+ GtkWidget *widget = NULL;
width = 1;
height = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]