aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-18 10:33:54 +0000
committerYang Tse <yangsita@gmail.com>2009-11-18 10:33:54 +0000
commit59939313f8452a9d817c178425c2ba3b91798ea9 (patch)
tree2f394dd93b80a64e70c29062ac7adca1fa9e024a /lib/ldap.c
parent961c504ca57b87fa530072f00f7643da77ca4386 (diff)
Make usage of calloc()'s arguments consistent with rest of code base
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 4ae304cf3..0152e668c 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -673,7 +673,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
static int _ldap_url_parse (const struct connectdata *conn,
LDAPURLDesc **ludpp)
{
- LDAPURLDesc *ludp = calloc(sizeof(*ludp), 1);
+ LDAPURLDesc *ludp = calloc(1, sizeof(*ludp));
int rc;
*ludpp = NULL;