mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 14:42:06 +00:00
ospfd: fixing few coverity issue in 'show_ip_ospf_neighbour_brief'
Description: timerval data structure is being used without initialization. Using these uninitialized parameters can lead unexpected results so initializing before using it. Signed-off-by: Rajesh Girada <rgirada@vmware.com>
This commit is contained in:
parent
e8a8b11610
commit
25804ce593
@ -4343,7 +4343,7 @@ static void show_ip_ospf_neighbour_brief(struct vty *vty,
|
||||
char msgbuf[16];
|
||||
char timebuf[OSPF_TIME_DUMP_SIZE];
|
||||
json_object *json_neighbor = NULL, *json_neigh_array = NULL;
|
||||
struct timeval res;
|
||||
struct timeval res = {.tv_sec = 0, .tv_usec = 0};
|
||||
long time_val = 0;
|
||||
char uptime[OSPF_TIME_DUMP_SIZE];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user