commit | 1a2b8eeecceaa155c926ccf18b32d7bede97f355 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Dec 05 10:41:55 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Dec 05 10:42:33 2022 +0100 |
tree | 377cbebd05235a2298a4dbe94daacbc7d1e5ca3b | |
parent | bf2333ec9ceede9b12dfc38396bb34a17fe25843 [diff] |
xpath BUGFIX message safe print
diff --git a/src/xpath.c b/src/xpath.c index 66a9dbf..b936392 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -4025,7 +4025,7 @@ /* find leafref target */ if (lyplg_type_resolve_leafref((struct lysc_type_leafref *)sleaf->type, &leaf->node, &leaf->value, set->tree, &node, &errmsg)) { - LOGERR(set->ctx, LY_EVALID, errmsg); + LOGERR(set->ctx, LY_EVALID, "%s", errmsg); free(errmsg); return LY_EVALID; }