[gtk+] gtktextlayout: fix to quiet a warning
- From: Sebastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktextlayout: fix to quiet a warning
- Date: Thu, 18 Dec 2014 20:02:19 +0000 (UTC)
commit ce8dc5186127ae175610366671a30d69625ebaa9
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 55a0e12..da3a0e8 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]