fix a c99-ism

This commit is contained in:
Nick Mathewson 2014-07-16 15:30:14 +02:00
parent c793a6edb4
commit 8c7fbdf3af

View File

@ -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);
}