Commit 8c7fbdf3 authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

fix a c99-ism

parent c793a6ed
Loading
Loading
Loading
Loading
+2 −1
Changes for src/common/log.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
    }