From: Vincent JARDIN Date: Sun, 8 Oct 2017 21:50:54 +0000 (+0200) Subject: bgpd: fix clang warning X-Git-Tag: frr-4.0-dev~233^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e991f75cb8393a386c4ad65452fa23cae31c9bc7;p=mirror%2Ffrr.git bgpd: fix clang warning Same fix than c31a793, alwas get the string so clang does not complain that it can be NULL. Signed-off-by: Vincent Jardin --- diff --git a/bgpd/bgp_filter.c b/bgpd/bgp_filter.c index 6e1a1b6d62..ae9d805b05 100644 --- a/bgpd/bgp_filter.c +++ b/bgpd/bgp_filter.c @@ -410,8 +410,8 @@ DEFUN (ip_as_path, char *regstr; /* Retrieve access list name */ - char *alname = - argv_find(argv, argc, "WORD", &idx) ? argv[idx]->arg : NULL; + argv_find(argv, argc, "WORD", &idx); + char *alname = argv[idx]->arg; /* Check the filter type. */ type = argv_find(argv, argc, "deny", &idx) ? AS_FILTER_DENY