summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 2a70e42f..dd7353e4 100644
--- a/src/json.c
+++ b/src/json.c
@@ -607,7 +607,7 @@ json_t *map_expr_json(const struct expr *expr, struct output_ctx *octx)
{
const char *type = "map";
- if (expr->mappings->ops->type == EXPR_SET_REF &&
+ if (expr->mappings->etype == EXPR_SET_REF &&
expr->mappings->set->datatype->type == TYPE_VERDICT)
type = "vmap";