[clinfo] 46/148: Fix param order in calloc()

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch clinfo
in repository clinfo.

commit e0e8080df3c2bfc70c20b68ee55a9c3d290b3546
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Tue Apr 29 22:23:49 2014 +0200

    Fix param order in calloc()
---
 src/memory.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/memory.h b/src/memory.h
index 477c1a8..2f43d31 100644
--- a/src/memory.h
+++ b/src/memory.h
@@ -11,7 +11,7 @@
 } while (0)
 
 #define ALLOC(var, num, what) do { \
-	var = calloc(sizeof(*var), num); \
+	var = calloc(num, sizeof(*var)); \
 	CHECK_MEM(var, what); \
 } while (0)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list