From 8c7fbdf3af2a28893ab68411d7d534792ccad34d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 16 Jul 2014 15:30:14 +0200 Subject: fix a c99-ism --- src/common/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/log.c') diff --git a/src/common/log.c b/src/common/log.c index 4ddd54fab0..2e51e5c578 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); } -- cgit v1.2.3-54-g00ecf