You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@return Positive number if val1 > val2.
*/
static int
in (const struct ly_ctx *ctx, const struct lyd_value *val1, const struct lyd_value *val2)
{
assert(val1->realtype == val2->realtype);
return val1->realtype->plugin->sort(ctx, val1, val2);
}
we met null-poniter failure when using the interface lyds_merge, we find the val1 could be null-pointer. How should we perform a NULL check on the input parameter.
Activity
michalvasko commentedon Jan 16, 2026
What exactly were you doing? You are not supposed to call
lyds_merge()or any other internal functions yourself.