[gnumeric] Initialize pi in case the ODF file is invalid
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Initialize pi in case the ODF file is invalid
- Date: Tue, 26 Jul 2011 19:24:38 +0000 (UTC)
commit a43301a684d6961d3c4d57524f2e0f9aed6feadb
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Jul 26 13:23:39 2011 -0600
Initialize pi in case the ODF file is invalid
2011-07-26 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (odf_master_page): initialize pi;
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-read.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 148f0a3..81b6694 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-26 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * openoffice-read.c (odf_master_page): initialize pi;
+
2011-07-18 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_add_font_weight): new
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 0e38067..2849fa8 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -4610,7 +4610,7 @@ odf_master_page (GsfXMLIn *xin, xmlChar const **attrs)
OOParseState *state = (OOParseState *)xin->user_state;
char const *name = NULL;
char const *pl_name = NULL;
- PrintInformation *pi;
+ PrintInformation *pi = NULL;
for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2)
if (gsf_xml_in_namecmp (xin, CXML2C (attrs[0]), OO_NS_STYLE, "name"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]