diff --git a/src/knot/zone/zone.c b/src/knot/zone/zone.c index a84c60cf1b4314b97be991424a8431b6056f451f..c76144a9f3dcc170d0b67ef8506a980abe76b972 100644 --- a/src/knot/zone/zone.c +++ b/src/knot/zone/zone.c @@ -141,7 +141,7 @@ static int flush_journal(conf_t *conf, zone_t *zone) /* Plan next journal flush after proper period. */ zone->timers.last_flush = time(NULL); - conf_val_t val = conf_zone_get(conf, C_ZONEFILE_SYNC, zone->name); + val = conf_zone_get(conf, C_ZONEFILE_SYNC, zone->name); int64_t sync_timeout = conf_int(&val); if (sync_timeout > 0) { time_t next_flush = zone->timers.last_flush + sync_timeout;