[gnumeric] Fix potential UMR in xlsx-read-drawing.c. [#693492]



commit 2d05c20f2ab561c5dc6362486c62779de458bad9
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Feb 10 08:27:15 2013 +0100

    Fix potential UMR in xlsx-read-drawing.c. [#693492]

 plugins/excel/ChangeLog           |    5 +++++
 plugins/excel/xlsx-read-drawing.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 01e4ce7..d6a2d40 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-10  Jean Brefort  <jean brefort normalesup org>
+
+	* xlsx-read-drawing.c (xlsx_drawing_preset_geom): fix uninitialized an 
+	variable issue. [#693492]
+
 2013-02-05  Jean Brefort  <jean brefort normalesup org>
 
 	* ms-chart.c (ms_excel_chart_read): don't use deprecated gog_style_new().
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index b5aa26c..b32a2cd 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -2157,7 +2157,7 @@ xlsx_drawing_preset_geom (GsfXMLIn *xin, xmlChar const **attrs)
 				state->so = g_object_new (GNM_SO_LINE_TYPE, NULL);
 		}
 	if (state->so) {
-		GOStyle *style;
+		GOStyle *style = NULL;
 		if (g_object_class_find_property (G_OBJECT_GET_CLASS (state->so), "style"))
 			g_object_get (state->so, "style", &style, NULL);
 		if (style) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]