[gnumeric] fix use of uninitialized variable



commit f0e5af47ce539b1d8d3ddb736e430e1c69995c6e
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue May 10 13:36:51 2011 -0600

    fix use of uninitialized variable
    
    2011-05-09  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (openoffice_file_open): initialize cur_control

 plugins/openoffice/ChangeLog         |    4 ++++
 plugins/openoffice/openoffice-read.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index a777f91..280d66d 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,9 @@
 2011-05-09  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-read.c (openoffice_file_open): initialize cur_control
+
+2011-05-09  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-write.c (odf_string_handler): use odf_print_string
 	(odf_print_string): new
 	(odf_cellref_as_string): rewrite
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 742766f..554e9bd 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -8670,6 +8670,7 @@ openoffice_file_open (GOFileOpener const *fo, GOIOContext *io_context,
 	state.page_breaks.h = state.page_breaks.v = NULL;
 	state.last_progress_update = 0;
 	state.last_error = NULL;
+	state.cur_control = NULL;
 
 	go_io_progress_message (state.context, _("Reading file..."));
 	go_io_value_progress_set (state.context, gsf_input_size (contents), 0);



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