From e991f75cb8393a386c4ad65452fa23cae31c9bc7 Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 8 Oct 2017 23:50:54 +0200 Subject: [PATCH] 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 --- bgpd/bgp_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5