mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:27:20 +03:00
remove unnecessary typecasting of malloc()
This commit is contained in:
parent
a622fd90b4
commit
59e378f48f
31 changed files with 68 additions and 72 deletions
|
|
@ -1068,7 +1068,7 @@ static int alloc_addbyter(int output, FILE *data)
|
|||
unsigned char outc = (unsigned char)output;
|
||||
|
||||
if(!infop->buffer) {
|
||||
infop->buffer=(char *)malloc(32);
|
||||
infop->buffer = malloc(32);
|
||||
if(!infop->buffer) {
|
||||
infop->fail = 1;
|
||||
return -1; /* fail */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue