Browse Source

Oops; make sure that break; and continue; work within SMARTLIST_FOREACH

svn:r2532
Nick Mathewson 21 years ago
parent
commit
f359389866
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.h

+ 1 - 1
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. */