aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-sexp.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index ba3c5d6a1e..450b9c45b1 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-01 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-sexp.c (e_sexp_term_eval): g_return_val_if_fail to prevent a crash.
+
2000-05-30 Not Zed <NotZed@HelixCode.com>
* e-sexp.c (e_sexp_encode_bool): Utility function to build a bool
diff --git a/e-util/e-sexp.c b/e-util/e-sexp.c
index 22727f22c2..b812edf8ca 100644
--- a/e-util/e-sexp.c
+++ b/e-util/e-sexp.c
@@ -491,6 +491,8 @@ e_sexp_term_eval(struct _ESExp *f, struct _ESExpTerm *t)
struct _ESExpResult *r, *r1;
int i;
+ g_return_val_if_fail(t != NULL, NULL);
+
r(printf("eval term :\n"));
r(parse_dump_term(t, 0));