summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/amgc_unit_ctx.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c
index 334ee32..eb65898 100644
--- a/src/driver/amgc_unit_ctx.c
+++ b/src/driver/amgc_unit_ctx.c
@@ -152,14 +152,13 @@ int amgc_get_unit_ctx(
memcpy(&ctx->cctx,dctx->cctx,
sizeof(ctx->cctx));
- ctx->path = path;
-
- ctx->uctx.path = &ctx->path;
- ctx->uctx.map = &ctx->map;
- ctx->uctx.cctx = &ctx->cctx;
- ctx->uctx.meta = &ctx->meta;
- ctx->uctx.entities = ctx->entities;
- ctx->uctx.ccunit= &ctx->ccunit;
+ ctx->path = path;
+ ctx->uctx.path = &ctx->path;
+ ctx->uctx.map = &ctx->map;
+ ctx->uctx.cctx = &ctx->cctx;
+ ctx->uctx.meta = &ctx->meta;
+ ctx->uctx.entities = ctx->entities;
+ ctx->uctx.ccunit = &ctx->ccunit;
if (amgc_get_unit_entities(&ctx->uctx,&ctx->meta,&ctx->entities))
return amgc_free_unit_ctx_impl(ctx,-1);