From 2703f331e24fd4f2f625323d1dc707a6e62595b6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 23 Jan 2024 10:28:30 -0500 Subject: [PATCH] sharpd: Fix coverity issues New commits had an assignment instead of a comparison option. Coverity wisely found it. Signed-off-by: Donald Sharp --- sharpd/sharp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index 6588300daa..f4947540d2 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -1018,7 +1018,7 @@ static int sharp_zebra_process_neigh(ZAPI_CALLBACK_ARGS) } zlog_debug("Received: %s %pSU dev %s lladr %pSU", - (cmd = ZEBRA_NEIGH_ADDED) ? "NEW" : "DEL", &addr, ifp->name, + (cmd == ZEBRA_NEIGH_ADDED) ? "NEW" : "DEL", &addr, ifp->name, &lladdr); return 0; -- 2.39.5