mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
newer gcc thinks it's smart (do they call it AI yet?) and points out
peercount may be used unitialized. of course it is utterly wrong. move peercount = 0 initialization 2 lines up to shut gcc up pointed out by bcook, dicussed with, gcc-checked by and ok bcook claudio
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ntp.c,v 1.181 2024/11/21 13:38:14 claudio Exp $ */
|
||||
/* $OpenBSD: ntp.c,v 1.182 2026/04/21 14:31:03 henning Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
|
||||
@@ -577,9 +577,9 @@ ntp_dispatch_imsg_dns(void)
|
||||
break;
|
||||
}
|
||||
|
||||
peercount = 0;
|
||||
if (peer->addr_head.pool) {
|
||||
n = 0;
|
||||
peercount = 0;
|
||||
|
||||
TAILQ_FOREACH_SAFE(npeer, &conf->ntp_peers,
|
||||
entry, tmp) {
|
||||
|
||||
Reference in New Issue
Block a user