X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/708be7e6cd5c35960a6d2213597ad413214d3287..ab0ecac88db14e649fbe8cd9cce7ea219d2edaff:/include/dict.h diff --git a/include/dict.h b/include/dict.h index f6e70b0a68..1719cc9b1b 100644 --- a/include/dict.h +++ b/include/dict.h @@ -139,8 +139,8 @@ void gras_dict_cursor_step (gras_dict_cursor_t *cursor); int gras_dict_cursor_get_or_free (gras_dict_cursor_t **cursor, char **key, void **data); -#define gras_dict_foreach(dict,cursor,key,data) \ - for (gras_dict_cursor_first((dict),&(cursor)) ; \ +#define gras_dict_foreach(dict,cursor,key,data) \ + for (cursor=NULL, gras_dict_cursor_first((dict),&(cursor)) ; \ gras_dict_cursor_get_or_free(&(cursor),&(key),(void**)(&data)); \ gras_dict_cursor_step(cursor) )