]> git.gsnw.org Git - fping.git/commit
initialize all resp_times array entries
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 24 Aug 2025 12:44:08 +0000 (14:44 +0200)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Tue, 26 Aug 2025 18:17:52 +0000 (20:17 +0200)
commit3437e06ae30e3c2d9bd32c111b7ca7e8ab012716
treea3b0392985584b21237a4db4736d69def7ece99a
parent2fd76cd55d5583d24f0d3e66dbd3f26475574aa4
initialize all resp_times array entries

Before, the resp_times array was initialized starting with the
second entry, leaving the first entry uninitialized.  This is
at least confusing.  Initializing one additional int64_t value
per ping target should not add too much overhead, so do this just
to be on the safe side.

Assuming that the first array entry need not be initialized when
creating the array now, this guards against potential problems
from future code changes that do not take this unexpected special
case into account.
src/fping.c