summaryrefslogtreecommitdiffhomepage
path: root/src/driver/pe_unit_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-31 09:37:37 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:34 -0500
commitffcd00b75aa6515256ae5f843ae4ef1e7dca435c (patch)
treea34e2906f4142207159921a946a635fa757aeeea /src/driver/pe_unit_ctx.c
parent536c1b8c974d15cf5eaf859a465cd8041b3cb4c0 (diff)
downloadperk-ffcd00b75aa6515256ae5f843ae4ef1e7dca435c.tar.bz2
perk-ffcd00b75aa6515256ae5f843ae4ef1e7dca435c.tar.xz
driver: fix semantics of calloc() calls.
Diffstat (limited to 'src/driver/pe_unit_ctx.c')
-rw-r--r--src/driver/pe_unit_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c
index b26c5ba..40b2a33 100644
--- a/src/driver/pe_unit_ctx.c
+++ b/src/driver/pe_unit_ctx.c
@@ -26,7 +26,7 @@ int pe_get_unit_ctx(
struct pe_unit_ctx_impl * ctx;
int prot;
- if (!dctx || !(ctx = calloc(sizeof(*ctx),1)))
+ if (!dctx || !(ctx = calloc(1,sizeof(*ctx))))
return -1;
prot = (dctx->cctx->actflags & PERK_ACTION_MAP_READWRITE)