summaryrefslogtreecommitdiffstats
path: root/lib/module.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-02 18:50:20 +0200
committerF. Aragon <paco@voltanet.io>2018-07-06 01:10:15 +0200
commit2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 (patch)
treeff80fa30b11c02764a44f6f20781c5cdb6f07c90 /lib/module.c
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.tar.xz
frr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.zip
eigrpd lib pimd zebra: dead code (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/module.c')
-rw-r--r--lib/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/module.c b/lib/module.c
index 0c8536400..7d5671290 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);