diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-09-21 12:31:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 12:31:58 +0200 |
commit | cd3bd19314ac86c25a7831f995947fae67c6706d (patch) | |
tree | c5b67cd6b3b62a8bea736777a026024b3805e561 /lib/northbound.c | |
parent | Merge pull request #14455 from fdumontet6WIND/fix_coverity_as_path (diff) | |
parent | lib: random make-coverity-happy nits (diff) | |
download | frr-cd3bd19314ac86c25a7831f995947fae67c6706d.tar.xz frr-cd3bd19314ac86c25a7831f995947fae67c6706d.zip |
Merge pull request #14454 from opensourcerouting/coverity-20230920
lib: fix a bunch of coverity nits
Diffstat (limited to 'lib/northbound.c')
-rw-r--r-- | lib/northbound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/northbound.c b/lib/northbound.c index ef2344ee1..69b96d365 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -2691,7 +2691,6 @@ void nb_init(struct event_loop *tm, size_t nmodules, bool db_enabled) { struct yang_module *loaded[nmodules], **loadedp = loaded; - bool explicit_compile; /* * Currently using this explicit compile feature in libyang2 leads to @@ -2699,8 +2698,9 @@ void nb_init(struct event_loop *tm, * of modules until they have all been loaded into the context. This * avoids multiple recompiles of the same modules as they are * imported/augmented etc. + * (Done as a #define to make coverity happy) */ - explicit_compile = false; +#define explicit_compile false nb_db_enabled = db_enabled; |