summaryrefslogtreecommitdiffstats
path: root/lib/northbound.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-09-21 12:31:58 +0200
committerGitHub <noreply@github.com>2023-09-21 12:31:58 +0200
commitcd3bd19314ac86c25a7831f995947fae67c6706d (patch)
treec5b67cd6b3b62a8bea736777a026024b3805e561 /lib/northbound.c
parentMerge pull request #14455 from fdumontet6WIND/fix_coverity_as_path (diff)
parentlib: random make-coverity-happy nits (diff)
downloadfrr-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.c4
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;