From 890152e338506badc1348a6d7642414a805b2419 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 31 Dec 2015 09:30:17 -0500 Subject: driver: fix semantics of calloc() calls. --- src/driver/amgc_unit_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver/amgc_unit_ctx.c') diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c index eb65898..6f08ad7 100644 --- a/src/driver/amgc_unit_ctx.c +++ b/src/driver/amgc_unit_ctx.c @@ -118,7 +118,7 @@ int amgc_get_unit_ctx( amgc_init_cparser_unit(); - if (!dctx || !(ctx = calloc(sizeof(*ctx),1))) + if (!dctx || !(ctx = calloc(1,sizeof(*ctx)))) return -1; if (strcmp(path,"-")) -- cgit v1.2.3