diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-15 20:49:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-15 20:49:31 +0000 |
commit | f3593898665527a29bf31e199b33b21f4405214c (patch) | |
tree | 5a358d8d9783e10deb768f8e4006ef27b96e87e4 | |
parent | 99f795537255cc71aa7cc9afe0216a2c382142dc (diff) | |
download | tor-f3593898665527a29bf31e199b33b21f4405214c.tar tor-f3593898665527a29bf31e199b33b21f4405214c.tar.gz |
Oops; make sure that break; and continue; work within SMARTLIST_FOREACH
svn:r2532
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 093fd73c1..5e3a95d4b 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -154,7 +154,7 @@ char *smartlist_join_strings(smartlist_t *sl, const char *join, int terminate); for(var ## _sl_idx = 0; var ## _sl_idx < var ## _sl_len; \ ++var ## _sl_idx) { \ var = smartlist_get((sl),var ## _sl_idx); \ - do {cmd;} while(0); \ + cmd; \ } } while (0) /* Map from const char * to void*. Implemented with a splay tree. */ |