瀏覽代碼

fix a c99-ism

Nick Mathewson 10 年之前
父節點
當前提交
8c7fbdf3af
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/common/log.c

+ 2 - 1
src/common/log.c

@@ -1305,7 +1305,8 @@ switch_logs_debug(void)
 void
 truncate_logs(void)
 {
-  for (logfile_t *lf = logfiles; lf; lf = lf->next) {
+  logfile_t *lf;
+  for (lf = logfiles; lf; lf = lf->next) {
     if (lf->fd >= 0) {
       tor_ftruncate(lf->fd);
     }