[gnumeric] Cleanup.



commit f4d3c987cf77be2ff1f85f0e005cd3fcc939a76a
Author: Morten Welinder <terra gnome org>
Date:   Fri Feb 21 21:09:21 2014 -0500

    Cleanup.

 plugins/openoffice/openoffice-read.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index d7c97c5..d15e697 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -3682,8 +3682,7 @@ oo_cell_start (GsfXMLIn *xin, xmlChar const **attrs)
                                    GNM_EXPR_GET_OPER (texpr->expr) == GNM_EXPR_OP_CONSTANT) {
                                        GnmValue const *eval =  gnm_expr_get_constant (texpr->expr);
                                        if (VALUE_IS_ERROR (eval)) {
-                                               if (val != NULL)
-                                                       value_release (val);
+                                               value_release (val);
                                                val = value_dup (eval);
                                                gnm_expr_top_unref (texpr);
                                                texpr = NULL;


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