mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
Made some variables const which eliminated some casts
This commit is contained in:
parent
bbc002a505
commit
934708d950
6 changed files with 24 additions and 24 deletions
|
|
@ -325,7 +325,7 @@ static char *memdup(const char *src, size_t buffer_length)
|
|||
}
|
||||
else
|
||||
/* no length and a NULL src pointer! */
|
||||
return strdup((char *)"");
|
||||
return strdup("");
|
||||
|
||||
buffer = (char*)malloc(length+add);
|
||||
if(!buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue