summaryrefslogtreecommitdiffhomepage
path: root/src/driver/amgc_unit_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/amgc_unit_ctx.c')
-rw-r--r--src/driver/amgc_unit_ctx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c
index a37706c..4da986a 100644
--- a/src/driver/amgc_unit_ctx.c
+++ b/src/driver/amgc_unit_ctx.c
@@ -154,8 +154,12 @@ int amgc_get_unit_ctx(
ctx->uctx.path = &ctx->path;
ctx->uctx.map = &ctx->map;
ctx->uctx.cctx = &ctx->cctx;
+ ctx->uctx.meta = &ctx->meta;
ctx->uctx.ccunit= &ctx->ccunit;
+ if (amgc_init_unit_meta(&ctx->uctx,&ctx->meta))
+ return amgc_free_unit_ctx_impl(ctx,-1);
+
*pctx = &ctx->uctx;
return 0;
}