aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-07-16 15:30:14 +0200
committerNick Mathewson <nickm@torproject.org>2014-07-16 15:30:14 +0200
commit8c7fbdf3af2a28893ab68411d7d534792ccad34d (patch)
tree77c8178bb1c63bec0d5983cf40ec8275a56b5466
parentc793a6edb441fdad568c26dc417e98484c74f897 (diff)
downloadtor-8c7fbdf3af2a28893ab68411d7d534792ccad34d.tar.gz
tor-8c7fbdf3af2a28893ab68411d7d534792ccad34d.zip
fix a c99-ism
-rw-r--r--src/common/log.c3
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);
}