diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-06 05:29:05 +0000 |
commit | 59e378f48fed849e8e41f0bc6a10bf7a1732ae8a (patch) | |
tree | 2443ceace655d5d830c7c4d7c95869c6a0f93c5c /lib/content_encoding.c | |
parent | a622fd90b4c563a4fced20c5b88cb57537e809b0 (diff) | |
download | curl-59e378f48fed849e8e41f0bc6a10bf7a1732ae8a.tar.gz |
remove unnecessary typecasting of malloc()
Diffstat (limited to 'lib/content_encoding.c')
-rw-r--r-- | lib/content_encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 1d2852b5a..9cd5b0734 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -89,7 +89,7 @@ inflate_stream(struct connectdata *conn, /* Dynamically allocate a buffer for decompression because it's uncommonly large to hold on the stack */ - decomp = (char*)malloc(DSIZ); + decomp = malloc(DSIZ); if(decomp == NULL) { return exit_zlib(z, &k->zlib_init, CURLE_OUT_OF_MEMORY); } |