summaryrefslogtreecommitdiffhomepage
path: root/src/driver/mdso_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-31 09:35:11 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:32 -0500
commitbea9e7fac004d8631d521a2087dff59ee2fbcb72 (patch)
tree314a5b14045c79a1c64487ecc3e4b223ad5675df /src/driver/mdso_driver_ctx.c
parentc71aad39229fe643928813d15f710baeca8a760c (diff)
downloadmdso-bea9e7fac004d8631d521a2087dff59ee2fbcb72.tar.bz2
mdso-bea9e7fac004d8631d521a2087dff59ee2fbcb72.tar.xz
driver: fix semantics of calloc() calls.
Diffstat (limited to 'src/driver/mdso_driver_ctx.c')
-rw-r--r--src/driver/mdso_driver_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index 14f1e75..aec63a6 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -75,7 +75,7 @@ static struct mdso_driver_ctx_impl * mdso_driver_ctx_alloc(
size = sizeof(struct mdso_driver_ctx_alloc);
size += (nunits+1)*sizeof(const char *);
- if (!(ictx = calloc(size,1)))
+ if (!(ictx = calloc(1,size)))
return 0;
if (cctx)