From cd657e232444402dd3c1c6f31ec4e53d713c64a6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 7 May 2016 15:42:51 -0400 Subject: [PATCH] lib: Fix possible uninitialized pointer usage. Signed-off-by: Donald Sharp Reviewed-by: Don Slice Reviewed-by: Daniel Walton --- lib/routemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routemap.c b/lib/routemap.c index 733e61c99b..1a31271b17 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -1207,7 +1207,7 @@ route_map_dep_update (struct hash *dephash, const char *dep_name, const char *rmap_name, route_map_event_t type) { - struct route_map_dep *dep; + struct route_map_dep *dep = NULL; char *ret_map_name; char *dname, *rname; int ret = 0; -- 2.39.5