소스 검색

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

svn:r2532
Nick Mathewson 21 년 전
부모
커밋
f359389866
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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. */