diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |