From 47994f55822ffcef9877ad8df0048f1b5fe94a9d Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@cray.com> Date: Mon, 31 May 2021 13:44:04 +0200 Subject: [PATCH] Fix wrong asserting in binary cdo selector parsing Binary operations failed on buggz assertion, rather than running into 'unimplemented' code section that needs fixing. --- maestro/pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maestro/pool.c b/maestro/pool.c index e4e9eebf..7d90c5c7 100644 --- a/maestro/pool.c +++ b/maestro/pool.c @@ -1369,7 +1369,8 @@ mstro__csq_validate(struct mstro_csq_val *csq, case MSTRO_CSQ_OP_EQ: /* fallthrough */ case MSTRO_CSQ_OP_NEQ: { /* translate lhs wrt. schema, rhs wrt. lhs type */ - assert(csq->has.key!=NULL); + assert(csq->kv_op.lhs!=NULL); + assert(csq->kv_op.rhs!=NULL); mstro_schema_attribute attr=NULL; char *tmp=NULL; mstro_status s = mstro__csq_lookup(schema, namespace, -- GitLab