[tor-commits] [tor/master] fix a c99-ism

nickm at torproject.org nickm at torproject.org
Wed Jul 16 13:30:19 UTC 2014


commit 8c7fbdf3af2a28893ab68411d7d534792ccad34d
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jul 16 15:30:14 2014 +0200

    fix a c99-ism
---
 src/common/log.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/log.c b/src/common/log.c
index 4ddd54f..2e51e5c 100644
--- a/src/common/log.c
+++ b/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);
     }



More information about the tor-commits mailing list