pimd: initialize prefix value in Auto-RP

clang-SA complains that it's only partially initialized (because it's
used with IPv4 only).  The code later calls some AF-generic code,
prompting clang-SA to complain that the non-IPv4 parts are used without
being set.  While this shouldn't happen, just initialize it fully.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2024-10-16 12:43:52 +02:00
parent 17f512c10d
commit 3ce0fe0e08

View File

@ -308,7 +308,7 @@ static bool pim_autorp_discovery(struct pim_autorp *autorp, uint8_t rpcnt,
struct autorp_pkt_grp *grp;
size_t offset = 0;
pim_addr rp_addr;
struct prefix grppfix;
struct prefix grppfix = {};
char plname[32];
struct prefix_list *pl;
struct prefix_list_entry *ple;