diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-27 09:48:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 09:48:15 +0200 |
| commit | 3497d85dcc10ace42a6285b8049896d85adfbe64 (patch) | |
| tree | 8dfd1d78476e656d486088496bc3dba9001a25a4 | |
| parent | 493c991315c74aa0214bba970b93ac56e5ecc116 (diff) | |
| parent | 0b2d943811375e2dce2037b0284ca0aeda1b8e20 (diff) | |
Merge pull request #15433 from FRRouting/mergify/bp/dev/10.0/pr-15430
lib: fix setting temporary log options for libyang (backport #15430)
| -rw-r--r-- | lib/northbound.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/northbound.c b/lib/northbound.c index f9f9449ea6..25ea658bc4 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -157,7 +157,7 @@ void nb_nodes_delete(void) struct nb_node *nb_node_find(const char *path) { const struct lysc_node *snode; - uint32_t llopts; + uint32_t llopts = 0; /* * Use libyang to find the schema node associated to the path and get @@ -165,8 +165,6 @@ struct nb_node *nb_node_find(const char *path) * disable logging temporarily to avoid libyang from logging an error * message when the node is not found. */ - llopts = ly_log_options(LY_LOSTORE); - llopts &= ~LY_LOLOG; ly_temp_log_options(&llopts); snode = yang_find_snode(ly_native_ctx, path, 0); |
