summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/amgc_unit_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c
index 7e265c0..54824e1 100644
--- a/src/driver/amgc_unit_ctx.c
+++ b/src/driver/amgc_unit_ctx.c
@@ -132,7 +132,7 @@ int amgc_get_unit_ctx(
else
ctx->ccunit.input = ftmp;
- if (amgc_map_input(fd,path,PROT_READ,&ctx->map))
+ if (amgc_map_input(dctx,fd,path,PROT_READ,&ctx->map))
return amgc_free_unit_ctx_impl(ctx,-1);
if (fd > 0)