[gnumeric] Avoid "Branch condition evaluates to a garbage value"



commit 31309b360b8c749dcee214562b59a8f01948bcee
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date:   Tue Sep 7 17:47:41 2010 +0200

    Avoid "Branch condition evaluates to a garbage value"

 plugins/openoffice/openoffice-read.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index b29640d..e990f87 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5820,7 +5820,7 @@ oo_legend (GsfXMLIn *xin, xmlChar const **attrs)
 	GogObjectPosition align = GOG_POSITION_ALIGN_CENTER;
 	GogObject *legend;
 	int tmp;
-	char const *style_name;
+	char const *style_name = NULL;
 
 	for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2)
 		if (oo_attr_enum (xin, attrs, OO_NS_CHART, "legend-position", positions, &tmp))



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