From bbd8d071675c278571c804fd0a71b51e7dfa8d7e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 2 Nov 2014 11:56:02 -0500 Subject: Apply new calloc coccinelle patch --- src/or/cpuworker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/cpuworker.c') diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 1fe472d18c..568d9e42d8 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -510,7 +510,7 @@ spawn_cpuworker(void) connection_t *conn; int err; - fdarray = tor_calloc(sizeof(tor_socket_t), 2); + fdarray = tor_calloc(2, sizeof(tor_socket_t)); if ((err = tor_socketpair(AF_UNIX, SOCK_STREAM, 0, fdarray)) < 0) { log_warn(LD_NET, "Couldn't construct socketpair for cpuworker: %s", tor_socket_strerror(-err)); -- cgit v1.2.3-54-g00ecf