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
Evaluating the expression of xbt_assert must not have side effects.
[simgrid.git]
/
src
/
xbt
/
xbt_str.c
diff --git
a/src/xbt/xbt_str.c
b/src/xbt/xbt_str.c
index
d7bad3e
..
d0fbddf
100644
(file)
--- a/
src/xbt/xbt_str.c
+++ b/
src/xbt/xbt_str.c
@@
-443,7
+443,6
@@
xbt_dynar_t xbt_str_split_quoted(const char *s)
char *q=xbt_strdup(p);
xbt_dynar_push(res,&q);
}
char *q=xbt_strdup(p);
xbt_dynar_push(res,&q);
}
- xbt_dynar_free(&parsed);
free(str_to_free);
xbt_dynar_shrink(res, 0);
xbt_dynar_free(&parsed);
free(str_to_free);
xbt_dynar_shrink(res, 0);
xbt_dynar_free(&parsed);
@@
-542,7
+541,7
@@
char *xbt_str_join(xbt_dynar_t dyn, const char *sep)
* The parameter must be a NULL-terminated array of chars,
* just like xbt_dynar_to_array() produces
*/
* The parameter must be a NULL-terminated array of chars,
* just like xbt_dynar_to_array() produces
*/
-char *xbt_str_join_array(c
har*const*
strs, const char *sep)
+char *xbt_str_join_array(c
onst char *const *
strs, const char *sep)
{
char *res,*q;
int amount_strings=0;
{
char *res,*q;
int amount_strings=0;