[gnumeric] xlsx: avoid using uninitialize variable.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: avoid using uninitialize variable.
- Date: Wed, 23 Mar 2011 12:53:48 +0000 (UTC)
commit 1727b7bd344dfd9a31309ae593a26713e4ed664b
Author: Morten Welinder <terra gnome org>
Date: Wed Mar 23 08:53:24 2011 -0400
xlsx: avoid using uninitialize variable.
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 94b560b..76de17f 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-23 Morten Welinder <terra gnome org>
+
+ * xlsx-read-drawing.c (xlsx_axis_crosses): Avoid using
+ uninitialized values if an attribute is missing.
+
2011-03-22 Jean Brefort <jean brefort normalesup org>
* xlsx-read-drawing.c (xlsx_chart_push_obj), (xlsx_chart_pop_obj),
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 0dc9bb3..307cf20 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -578,7 +578,7 @@ xlsx_axis_crosses (GsfXMLIn *xin, xmlChar const **attrs)
{ NULL, 0 }
};
XLSXReadState *state = (XLSXReadState *)xin->user_state;
- int cross;
+ int cross = GOG_AXIS_CROSS;
if (state->axis.info && simple_enum (xin, attrs, crosses, &cross))
state->axis.info->cross = cross;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]