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
Bugfix: I inverted the semantic of xbt_dict_get_or_null_ext and xbt_dict_get_ext...
[simgrid.git]
/
src
/
xbt
/
dict.c
diff --git
a/src/xbt/dict.c
b/src/xbt/dict.c
index
4bd519b
..
f116e5a
100644
(file)
--- a/
src/xbt/dict.c
+++ b/
src/xbt/dict.c
@@
-320,7
+320,7
@@
void *xbt_dict_get_ext(xbt_dict_t dict,
}
if (current == NULL)
}
if (current == NULL)
-
return NULL
;
+
THROW2(not_found_error, 0, "key %.*s not found", key_len, key)
;
return current->content;
}
return current->content;
}
@@
-341,7
+341,7
@@
void *xbt_dict_get_or_null_ext(xbt_dict_t dict,
}
if (current == NULL)
}
if (current == NULL)
-
THROW2(not_found_error, 0, "key %.*s not found", key_len, key)
;
+
return NULL
;
return current->content;
}
return current->content;
}