From 59939313f8452a9d817c178425c2ba3b91798ea9 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 18 Nov 2009 10:33:54 +0000 Subject: Make usage of calloc()'s arguments consistent with rest of code base --- lib/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/http.c') diff --git a/lib/http.c b/lib/http.c index 832a6d507..7e4e58795 100644 --- a/lib/http.c +++ b/lib/http.c @@ -984,7 +984,7 @@ static CURLcode static send_buffer *add_buffer_init(void) { - return calloc(sizeof(send_buffer), 1); + return calloc(1, sizeof(send_buffer)); } /* @@ -2078,7 +2078,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) if(!data->state.proto.http) { /* Only allocate this struct if we don't already have it! */ - http = calloc(sizeof(struct HTTP), 1); + http = calloc(1, sizeof(struct HTTP)); if(!http) return CURLE_OUT_OF_MEMORY; data->state.proto.http = http; -- cgit v1.2.3