diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-01-26 14:56:04 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-01-27 12:01:20 +0100 | 
| commit | ae08de9f427ec6b71299ae2786cff19b98d0468f (patch) | |
| tree | eac8b492c20355de2a6e1e787cb00f0abfefb04f /pathd/path_nb.c | |
| parent | c84e51870940311bb6ec67d8b192da1ce32cba8f (diff) | |
*: fix non-const northbound XPath format strings
Passing a pre-formatted buffer in these places needs a `"%s"` in front
so it doesn't get formatted twice.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pathd/path_nb.c')
| -rw-r--r-- | pathd/path_nb.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/pathd/path_nb.c b/pathd/path_nb.c index 1ab8b7f39b..137e64d12c 100644 --- a/pathd/path_nb.c +++ b/pathd/path_nb.c @@ -310,7 +310,7 @@ void iter_objfun_prefs(const struct lyd_node *dnode, const char* path,  	struct of_cb_args args = {0};  	struct of_cb_pref *p; -	yang_dnode_iterate(iter_objfun_cb, &args, dnode, path); +	yang_dnode_iterate(iter_objfun_cb, &args, dnode, "%s", path);  	for (p = args.first; p != NULL; p = p->next)  		fun(p->type, arg);  }  | 
