[gnumeric] Initialise "so".
- From: J.H.M. Dassen (Ray) <jdassen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Initialise "so".
- Date: Thu, 9 Sep 2010 12:01:28 +0000 (UTC)
commit de4df695e736bf260b2c0f3b50a7f0b0b9c9ee99
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date: Thu Sep 9 13:58:27 2010 +0200
Initialise "so".
"so" not being initialised triggered three paths leading to a "Pass-by-value
argument in function call is undefined" situation as identified by
LLVM/clang.
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 24b1052..41462a3 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -4670,7 +4670,7 @@ od_draw_control_start (GsfXMLIn *xin, xmlChar const **attrs)
if (name != NULL) {
OOControl *oc = g_hash_table_lookup (state->controls, name);
if (oc != NULL) {
- SheetObject *so;
+ SheetObject *so = NULL;
if (oc->t == sheet_widget_scrollbar_get_type ()) {
GtkAdjustment *adj;
int min_real = (oc->min < oc->max) ? oc->min : oc->max;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]