commit 7988c7a7cafa0919e92d4885f120536c80021c47 from: Stefan Sperling date: Thu Aug 29 13:08:59 2024 UTC must initialize ndp.c variable 'nbi' in case for-loop never runs found by codechecker commit - cba0363734ed7319728d8219f00bdda543709521 commit + 7988c7a7cafa0919e92d4885f120536c80021c47 blob - f7a4894fad49fd38fff8170838f30e64bf03924c blob + 11da938ab2c97ad9542869bd722262aa88c11c6d --- ndp.c +++ ndp.c @@ -357,7 +357,7 @@ ndpdump(struct sockaddr_in6 *addr, int cflag) struct rt_msghdr *rtm; struct sockaddr_in6 *sin; struct sockaddr_dl *sdl; - struct in6_nbrinfo *nbi; + struct in6_nbrinfo *nbi = NULL; struct timeval now; int addrwidth; int llwidth;