[goffice] Don't use uninitialized values. [#696569]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Don't use uninitialized values. [#696569]
- Date: Mon, 25 Mar 2013 17:34:52 +0000 (UTC)
commit 92b77ba99041a40d2d54673f36b4e2dc15b675af
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Mar 25 17:33:54 2013 +0100
Don't use uninitialized values. [#696569]
ChangeLog | 5 +++++
plugins/plot_barcol/gog-barcol.c | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9a2bcd0..a064715 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-25 Jean Brefort <jean brefort normalesup org>
+
+ * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): don't use
+ uninitialized values. [#696569]
+
2013-03-25 Morten Welinder <terra gnome org>
* goffice/canvas/goc-polyline.c (goc_polyline_draw): Fix cairo
diff --git a/plugins/plot_barcol/gog-barcol.c b/plugins/plot_barcol/gog-barcol.c
index 50bd165..e19a69e 100644
--- a/plugins/plot_barcol/gog-barcol.c
+++ b/plugins/plot_barcol/gog-barcol.c
@@ -618,6 +618,9 @@ gog_barcol_view_render (GogView *view, GogViewAllocation const *bbox)
base_series = GOG_SERIES (series);
if (!gog_series_is_valid (base_series)) {
lengths[i] = 0;
+ errors[i] = NULL;
+ lines[i] = NULL;
+ labels[i] = NULL;
continue;
}
vals[i] = go_data_get_values (base_series->values[1].data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]