mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
ospf6d: fix uninitialized warnings
GCC 13.2.0 complains:
```
ospf6d/ospf6_intra.c:139:25: error: ‘json_arr’ may be used uninitialized [-Werror=maybe-uninitialized]
ospf6d/ospf6_intra.c:485:20: error: ‘json_arr’ may be used uninitialized [-Werror=maybe-uninitialized]
```
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 55bbef1356
)
This commit is contained in:
parent
db613bd7e7
commit
decb9afda4
@ -87,7 +87,7 @@ static int ospf6_router_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
|
|||||||
char buf[32], name[32], bits[16], options[32];
|
char buf[32], name[32], bits[16], options[32];
|
||||||
struct ospf6_router_lsa *router_lsa;
|
struct ospf6_router_lsa *router_lsa;
|
||||||
struct ospf6_router_lsdesc *lsdesc;
|
struct ospf6_router_lsdesc *lsdesc;
|
||||||
json_object *json_arr;
|
json_object *json_arr = NULL;
|
||||||
json_object *json_loop;
|
json_object *json_loop;
|
||||||
|
|
||||||
router_lsa =
|
router_lsa =
|
||||||
@ -460,7 +460,7 @@ static int ospf6_network_lsa_show(struct vty *vty, struct ospf6_lsa *lsa,
|
|||||||
struct ospf6_network_lsa *network_lsa;
|
struct ospf6_network_lsa *network_lsa;
|
||||||
struct ospf6_network_lsdesc *lsdesc;
|
struct ospf6_network_lsdesc *lsdesc;
|
||||||
char buf[128], options[32];
|
char buf[128], options[32];
|
||||||
json_object *json_arr;
|
json_object *json_arr = NULL;
|
||||||
|
|
||||||
network_lsa =
|
network_lsa =
|
||||||
(struct ospf6_network_lsa *)((caddr_t)lsa->header
|
(struct ospf6_network_lsa *)((caddr_t)lsa->header
|
||||||
|
Loading…
Reference in New Issue
Block a user