summaryrefslogtreecommitdiff
path: root/lib/northbound_sysrepo.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-02-24 07:37:09 -0500
committerGitHub <noreply@github.com>2023-02-24 07:37:09 -0500
commit7cedcf270e01097ed2d675e12f9be0dfd4f7d69b (patch)
tree8348d055ddc0c956ecdadcc64c508ecfebc9c92a /lib/northbound_sysrepo.c
parentba995a720b498955720f0caeeb4d26bac2b84be4 (diff)
parent41ef7327e3ebf9f0293c6046190aceb9d44f8414 (diff)
Merge pull request #12889 from LabNConsulting/chopps/fix-nb-context-arg
lib: fix init. use of nb_context to be by value not by reference
Diffstat (limited to 'lib/northbound_sysrepo.c')
-rw-r--r--lib/northbound_sysrepo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_sysrepo.c b/lib/northbound_sysrepo.c
index 824d81a51e..096414ff24 100644
--- a/lib/northbound_sysrepo.c
+++ b/lib/northbound_sysrepo.c
@@ -268,7 +268,7 @@ static int frr_sr_config_change_cb_prepare(sr_session_ctx_t *session,
* Validate the configuration changes and allocate all resources
* required to apply them.
*/
- ret = nb_candidate_commit_prepare(&context, candidate, NULL,
+ ret = nb_candidate_commit_prepare(context, candidate, NULL,
&transaction, errmsg, sizeof(errmsg));
if (ret != NB_OK && ret != NB_ERR_NO_CHANGES)
flog_warn(