Browse Source

fix a c99-ism

Nick Mathewson 9 years ago
parent
commit
8c7fbdf3af
1 changed files with 2 additions and 1 deletions
  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);
     }