diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-07-16 15:30:14 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-07-16 15:30:14 +0200 |
commit | 8c7fbdf3af2a28893ab68411d7d534792ccad34d (patch) | |
tree | 77c8178bb1c63bec0d5983cf40ec8275a56b5466 | |
parent | c793a6edb441fdad568c26dc417e98484c74f897 (diff) | |
download | tor-8c7fbdf3af2a28893ab68411d7d534792ccad34d.tar.gz tor-8c7fbdf3af2a28893ab68411d7d534792ccad34d.zip |
fix a c99-ism
-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); } |