diff options
author | midipix <writeonce@midipix.org> | 2015-12-31 20:51:56 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-01-01 22:50:25 -0500 |
commit | 75d04a21dc99d2afe973eb2c0fba745077e136a2 (patch) | |
tree | 2037b50faec6af10de953e247a3d1adfae02d64b | |
parent | c4a105a804c25415eaf79588b38a5d7fc8e75d70 (diff) | |
download | apimagic-75d04a21dc99d2afe973eb2c0fba745077e136a2.tar.bz2 apimagic-75d04a21dc99d2afe973eb2c0fba745077e136a2.tar.xz |
driver: fix out-of-place initialization of uctx.entities.
-rw-r--r-- | src/driver/amgc_unit_ctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c index 6f08ad7..54abdaa 100644 --- a/src/driver/amgc_unit_ctx.c +++ b/src/driver/amgc_unit_ctx.c @@ -157,12 +157,12 @@ int amgc_get_unit_ctx( 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); + ctx->uctx.entities = ctx->entities; *pctx = &ctx->uctx; return 0; } |