diff --git a/src/url.c b/src/url.c
index 47741e4ab1f91d336e5aba8117bde01094e370c3..0cd2c7f95a3a6d4730ac1b04699a019396841c90 100644
--- a/src/url.c
+++ b/src/url.c
@@ -42,7 +42,7 @@ va_start(ap, fmt);
int n = vsnprintf(NULL, 0, fmt, ap);
va_end(ap);
- char *strp = calloc(n + 1, 1);
+ char *strp = calloc(1, n + 1);
assert(strp);
va_start(ap, fmt);
@@ -1023,7 +1023,7 @@ /*
*/
struct Curl_URL *curl_url(void)
{
- return calloc(sizeof(struct Curl_URL), 1);
+ return calloc(1, sizeof(struct Curl_URL));
}
void curl_url_cleanup(struct Curl_URL *u)
@@ -1043,7 +1043,7 @@ }
struct Curl_URL *curl_url_dup(struct Curl_URL *in)
{
- struct Curl_URL *u = calloc(sizeof(struct Curl_URL), 1);
+ struct Curl_URL *u = calloc(1, sizeof(struct Curl_URL));
if(u) {
DUP(u, in, scheme);
DUP(u, in, user);