diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-09-21 06:31:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 06:31:58 -0400 |
| commit | cd3bd19314ac86c25a7831f995947fae67c6706d (patch) | |
| tree | c5b67cd6b3b62a8bea736777a026024b3805e561 /lib/northbound.c | |
| parent | d81e492368b8b78ab1f4fbaba3e72d93c3958608 (diff) | |
| parent | 448d690a354c3ea481aba6254a285937d843cf81 (diff) | |
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 ef2344ee11..69b96d3656 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; |
