[gnumeric] fixing missing initialization in gnumeric_ashwednesday



commit 054c8b72712888dfd4eccc623dbf364661d886a9
Author: Andreas J. Guelzow <aguelzow opteron2 lab math concordia ab ca>
Date:   Fri Oct 23 15:07:56 2009 -0600

    fixing missing initialization in gnumeric_ashwednesday

 plugins/fn-christian-date/ChangeLog   |    4 ++++
 plugins/fn-christian-date/functions.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/fn-christian-date/ChangeLog b/plugins/fn-christian-date/ChangeLog
index 144dd1c..32974ea 100644
--- a/plugins/fn-christian-date/ChangeLog
+++ b/plugins/fn-christian-date/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-23  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* functions.c (gnumeric_ashwednesday): initialize year
+
+2009-10-23  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* functions.c: Change the handling of small years throughout
 	(adjust_year): rewrite
 
diff --git a/plugins/fn-christian-date/functions.c b/plugins/fn-christian-date/functions.c
index dc7abce..8b691b6 100644
--- a/plugins/fn-christian-date/functions.c
+++ b/plugins/fn-christian-date/functions.c
@@ -164,7 +164,7 @@ static GnmFuncHelp const help_ashwednesday[] = {
 static GnmValue *
 gnumeric_ashwednesday (GnmFuncEvalInfo * ei, GnmValue const * const *argv)
 {
-	int year;
+	int year = 0;
 	GDate date;
 	GODateConventions const *conv = DATE_CONV (ei->pos);
 



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