X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec16845133f5f1b5262d2d77d8ba22824fa8a446..ccab7e3f8e9132f6cb576d98f90506279acc3883:/src/xbt/set.c diff --git a/src/xbt/set.c b/src/xbt/set.c index daaafc9a17..8b3efbfce0 100644 --- a/src/xbt/set.c +++ b/src/xbt/set.c @@ -264,7 +264,7 @@ void xbt_set_cursor_first(xbt_set_t set, xbt_set_cursor_t * cursor) if (!*cursor) { XBT_DEBUG("Create the cursor on first use"); *cursor = xbt_new(s_xbt_set_cursor_t, 1); - xbt_assert0(*cursor, + xbt_assert(*cursor, "Malloc error during the creation of the cursor"); } (*cursor)->set = set; @@ -434,7 +434,8 @@ static void search_not_found(xbt_set_t set, const char *data) xbt_set_get_by_name(set, data); THROWF(unknown_error, 0, "Found something which shouldn't be there (%s)", data); - } CATCH(e) { + } + CATCH(e) { if (e.category != not_found_error) xbt_test_exception(e); xbt_ex_free(e);