A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not assert out when the user tries to remove data from a NULL dict: that's a noop ;)
[simgrid.git]
/
src
/
xbt
/
dict.c
diff --git
a/src/xbt/dict.c
b/src/xbt/dict.c
index
5ff0537
..
6602cc0
100644
(file)
--- 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);
}