From aa7c707291dd1533fcac940f565b42188d558798 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 3 Jun 2004 22:04:10 +0000 Subject: [PATCH] Do not assert out when the user tries to remove data from a NULL dict: that's a noop ;) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@89 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/dict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xbt/dict.c b/src/xbt/dict.c index 5ff053727b..6602cc0023 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -179,7 +179,8 @@ gras_dict_remove_ext(gras_dict_t *dict, gras_error_t gras_dict_remove(gras_dict_t *dict, const char *key) { - gras_assert(dict); + if (!dict) + RAISE1(mismatch_error,"Asked to remove key %s from NULL dict",key); return gras_dictelm_remove(dict->head, key); } -- 2.20.1