From 2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Mon, 2 Jul 2018 18:50:20 +0200 Subject: eigrpd lib pimd zebra: dead code (PVS-Studio) Signed-off-by: F. Aragon --- lib/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/module.c') diff --git a/lib/module.c b/lib/module.c index 0c85364003..7d5671290b 100644 --- a/lib/module.c +++ b/lib/module.c @@ -85,7 +85,7 @@ struct frrmod_runtime *frrmod_load(const char *spec, const char *dir, char *err, *args++ = '\0'; if (!strchr(name, '/')) { - if (!handle && execname) { + if (execname) { snprintf(fullpath, sizeof(fullpath), "%s/%s_%s.so", dir, execname, name); handle = dlopen(fullpath, RTLD_NOW | RTLD_GLOBAL); -- cgit v1.2.3