[goffice] Fixed another uninitialized value issue.



commit 9ce059b2fc09d6ebf6c3ed972be0196e50464b93
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Mar 25 20:30:41 2013 +0100

    Fixed another uninitialized value issue.

 ChangeLog                         |    5 +++++
 plugins/plot_barcol/gog-dropbar.c |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a064715..4f4e3d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-03-25  Jean Brefort  <jean brefort normalesup org>
 
+       * plugins/plot_barcol/gog-dropbar.c (gog_dropbar_view_render): one more
+       uninitialized value issue fixed.
+
+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]
 
diff --git a/plugins/plot_barcol/gog-dropbar.c b/plugins/plot_barcol/gog-dropbar.c
index ca1f83d..76d9c5b 100644
--- a/plugins/plot_barcol/gog-dropbar.c
+++ b/plugins/plot_barcol/gog-dropbar.c
@@ -298,8 +298,10 @@ gog_dropbar_view_render (GogView *view, GogViewAllocation const *bbox)
        for (ptr = gog_1_5d_model->base.series ; ptr != NULL ; ptr = ptr->next) {
                series = ptr->data;
                base_series = GOG_SERIES (series);
-               if (!gog_series_is_valid (base_series))
+               if (!gog_series_is_valid (base_series)) {
+                       path1[j++] = NULL;
                        continue;
+               }
                prec_valid = FALSE;
                neg_style = go_style_dup ((GOG_STYLED_OBJECT (series))->style);
                neg_style->line.color ^= 0xffffff00;


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