From 7871ce59d70193f230c87def8d23f5ab03b59945 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 1 Jun 2000 19:21:50 +0000 Subject: g_return_val_if_fail to prevent a crash. 2000-06-01 Christopher James Lahey * e-sexp.c (e_sexp_term_eval): g_return_val_if_fail to prevent a crash. svn path=/trunk/; revision=3337 --- e-util/ChangeLog | 4 ++++ e-util/e-sexp.c | 2 ++ 2 files changed, 6 insertions(+) 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 + + * e-sexp.c (e_sexp_term_eval): g_return_val_if_fail to prevent a crash. + 2000-05-30 Not Zed * 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)); -- cgit