Make usage of calloc()'s arguments consistent with rest of code base

This commit is contained in:
Yang Tse
2009-11-18 10:33:54 +00:00
parent 961c504ca5
commit 59939313f8
19 changed files with 25 additions and 25 deletions

View File

@@ -210,7 +210,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done)
Curl_reset_reqproto(conn);
if(!data->state.proto.file) {
file = calloc(sizeof(struct FILEPROTO), 1);
file = calloc(1, sizeof(struct FILEPROTO));
if(!file) {
free(real_path);
return CURLE_OUT_OF_MEMORY;