Commit c6af5180bc for frr
commit c6af5180bc87eccfd30e927150349a6d9e83f1e4
Author: Donald Sharp <sharpd@nvidia.com>
Date: Wed Oct 14 17:06:30 2026 -0400
mgmtd: Fix compiler warning about uninited usage
This typ variable is claimed to be possibly used
uninited. This is impossible because all the possible
case statements in the preceeding switch are there.
Let's just make the compiler happy.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
diff --git a/mgmtd/mgmt_be_adapter.c b/mgmtd/mgmt_be_adapter.c
index fbd0bbe3d4..6ededa838d 100644
--- a/mgmtd/mgmt_be_adapter.c
+++ b/mgmtd/mgmt_be_adapter.c
@@ -334,7 +334,7 @@ static void be_adapter_register_client_xpath(mgmt_be_client_id_t id, const char
{
struct mgmt_be_xpath_map **maps, *map;
const char *interest = "interest in";
- const char *typ;
+ const char *typ = NULL;
maps = NULL;