[gnumeric] Fixed critical. [#649901]



commit dc01f275231e5b95b693c654f3df7ccfaf3ecfc2
Author: Jean Brefort <jean brefort normalesup org>
Date:   Fri May 13 17:51:07 2011 +0200

    Fixed critical. [#649901]

 ChangeLog   |    4 ++++
 NEWS        |    3 +++
 src/graph.c |    3 ++-
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2ad563f..7b9b0dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-13  Jean Brefort  <jean brefort normalesup org>
+
+	* src/graph.c (gnm_go_data_get_expr): fixed critical. [#649901]
+
 2011-05-09  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/parse-util.h (_GnmConventions): add input.string
diff --git a/NEWS b/NEWS
index 5a82bf4..9c568ba 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,9 @@ Andreas:
 	* Fix ODF style handling on import. [#649851]
 	* Import more validations from ODF.
 
+Jean:
+	* Fixed critical. [#649901]
+
 Morten:
 	* Fix problems with localized function docs.
 	* Plug leaks.
diff --git a/src/graph.c b/src/graph.c
index 7f06b1d..4f2e6b2 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -288,7 +288,8 @@ GnmExprTop const *
 gnm_go_data_get_expr (GOData const *dat)
 {
 	GnmDependent *dep = gnm_go_data_get_dep (dat);
-	g_return_val_if_fail (dep != NULL, NULL);
+	if (!dep)
+		return NULL;
 	return dep->texpr;
 }
 



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