summaryrefslogtreecommitdiffstats
path: root/lib/routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-05-07 21:42:51 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-19 16:42:30 +0200
commitcd657e232444402dd3c1c6f31ec4e53d713c64a6 (patch)
tree8d2efa747dfd09f49c9d3e9937f18c75f998d367 /lib/routemap.c
parentbgpd: Clean up some static analysis warnings (diff)
downloadfrr-cd657e232444402dd3c1c6f31ec4e53d713c64a6.tar.xz
frr-cd657e232444402dd3c1c6f31ec4e53d713c64a6.zip
lib: Fix possible uninitialized pointer usage.
Signed-off-by: Donald Sharp <sharp@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 733e61c99..1a31271b1 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;