Message ID | 20230114163411.3290201-3-f.fainelli@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Michal Kubecek |
Headers | show |
Series | Build fixes for older kernel headers and musl | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch, async |
diff --git a/netlink/parser.c b/netlink/parser.c index f982f229a040..6f863610a490 100644 --- a/netlink/parser.c +++ b/netlink/parser.c @@ -237,7 +237,7 @@ int nl_parse_direct_m2cm(struct nl_context *nlctx, uint16_t type, struct nl_msg_buff *msgbuff, void *dest) { const char *arg = *nlctx->argp; - float meters; + float meters = 0.0; uint32_t cm; int ret;
GCC12 warns that 'meters' may be uninitialized, initialize it accordingly. Fixes: 9561db9b76f4 ("Add cable test TDR support") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> --- netlink/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)