mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:53:39 +03:00
remove unnecessary typecasting of realloc()
This commit is contained in:
parent
70e57dad88
commit
861b647e7b
11 changed files with 14 additions and 14 deletions
|
|
@ -1079,7 +1079,7 @@ static int alloc_addbyter(int output, FILE *data)
|
|||
else if(infop->len+1 >= infop->alloc) {
|
||||
char *newptr;
|
||||
|
||||
newptr = (char *)realloc(infop->buffer, infop->alloc*2);
|
||||
newptr = realloc(infop->buffer, infop->alloc*2);
|
||||
|
||||
if(!newptr) {
|
||||
infop->fail = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue