diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-18 10:33:54 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-18 10:33:54 +0000 |
commit | 59939313f8452a9d817c178425c2ba3b91798ea9 (patch) | |
tree | 2f394dd93b80a64e70c29062ac7adca1fa9e024a /lib/http.c | |
parent | 961c504ca57b87fa530072f00f7643da77ca4386 (diff) |
Make usage of calloc()'s arguments consistent with rest of code base
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |