mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
This commit is contained in:
parent
9c5cd6c413
commit
16b95fc773
16 changed files with 102 additions and 98 deletions
|
|
@ -93,10 +93,10 @@ struct curl_slist *curl_slist_append(struct curl_slist *list,
|
|||
|
||||
new_item = (struct curl_slist *) malloc(sizeof(struct curl_slist));
|
||||
if (new_item) {
|
||||
char *dup = strdup(data);
|
||||
if(dup) {
|
||||
char *dupdata = strdup(data);
|
||||
if(dupdata) {
|
||||
new_item->next = NULL;
|
||||
new_item->data = dup;
|
||||
new_item->data = dupdata;
|
||||
}
|
||||
else {
|
||||
free(new_item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue