commit | 01f1eb776b38dd7e70cbbd8115195a842c0f82c3 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Feb 20 15:49:49 2024 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Feb 20 15:51:49 2024 +0100 |
tree | af8f92b14948b3bda75d38dfb16b014fa56913cf | |
parent | dedded62524596068a40bc8126c6e207f64b983e [diff] [blame] |
xpath BUGFIX update return value check
diff --git a/src/xpath.c b/src/xpath.c index ae0c627..09f1111 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -568,7 +568,7 @@ LY_CHECK_RET(ly_out_new_memory(&buf, 0, &out)); rc = lyd_print_all(out, any->value.tree, LYD_XML, 0); ly_out_free(out, NULL, 0); - LY_CHECK_RET(rc < 0, -rc); + LY_CHECK_RET(rc); break; case LYD_ANYDATA_LYB: LOGERR(set->ctx, LY_EINVAL, "Cannot convert LYB anydata into string.");