X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a122c7adb6b296162c5f5297531902525a675861..91715e2f198242d378e33453014dd004fcf9f47e:/src/xbt/xbt_str.c diff --git a/src/xbt/xbt_str.c b/src/xbt/xbt_str.c index d7bad3e446..d0fbddfd8f 100644 --- 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); } - 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 */ -char *xbt_str_join_array(char*const* strs, const char *sep) +char *xbt_str_join_array(const char *const *strs, const char *sep) { char *res,*q; int amount_strings=0;