Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Evaluating the expression of xbt_assert must not have side effects.
[simgrid.git] / src / xbt / xbt_str.c
index d7bad3e..d0fbddf 100644 (file)
@@ -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;