Explorar o código

fix a c99-ism

Nick Mathewson %!s(int64=10) %!d(string=hai) anos
pai
achega
8c7fbdf3af
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
     }