mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
ping6: quiet an undefined variable warning
GCC 4.2 isn't smart enough to know that this variable is already defined by the time it's used. Submitted by: Ján Sučan <sucanjan@gmail.com> MFC after: 2 weeks Sponsored by: Google, inc. (Google Summer of Code 2019) Differential Revision: https://reviews.freebsd.org/D21269
This commit is contained in:
parent
dab7253c41
commit
899ecf0904
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351080
@ -2082,7 +2082,7 @@ pr_nodeaddr(struct icmp6_nodeinfo *ni, int nilen)
|
||||
if (nilen % (sizeof(u_int32_t) + sizeof(struct in6_addr)) == 0)
|
||||
withttl = 1;
|
||||
while (nilen > 0) {
|
||||
u_int32_t ttl;
|
||||
u_int32_t ttl = 0;
|
||||
|
||||
if (withttl) {
|
||||
/* XXX: alignment? */
|
||||
|
Loading…
Reference in New Issue
Block a user