Skip to content
Snippets Groups Projects
Commit 6c432a55 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Replace the dummy-use var in SMARTLIST_FOREACH_END() with one that is less...

Replace the dummy-use var in SMARTLIST_FOREACH_END() with one that is less likely to confuse analysis tools into thinking we do use after free.  Arguably, (void)x should count as use in suppressing unused variable warnings, but not in generating hey-you-used-a-variable warnings.  Arguably, though, it shouldn't.

svn:r16815
parent fa64d804
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
var = (sl)->list[var ## _sl_idx];
#define SMARTLIST_FOREACH_END(var) \
(void)var; \
var = NULL; \
} STMT_END
#define SMARTLIST_FOREACH(sl, type, var, cmd) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment