mirror of https://github.com/moparisthebest/curl
Renamed a few variables to avoid shadowing global declarations.
This commit is contained in:
parent
9fc8800b6d
commit
ad05b22de3
|
@ -117,12 +117,12 @@ mk_hash_element(const void *key, size_t key_len, const void *p)
|
||||||
(struct curl_hash_element *) malloc(sizeof(struct curl_hash_element));
|
(struct curl_hash_element *) malloc(sizeof(struct curl_hash_element));
|
||||||
|
|
||||||
if(he) {
|
if(he) {
|
||||||
void *dup = malloc(key_len);
|
void *dupkey = malloc(key_len);
|
||||||
if(dup) {
|
if(dupkey) {
|
||||||
/* copy the key */
|
/* copy the key */
|
||||||
memcpy(dup, key, key_len);
|
memcpy(dupkey, key, key_len);
|
||||||
|
|
||||||
he->key = dup;
|
he->key = dupkey;
|
||||||
he->key_len = key_len;
|
he->key_len = key_len;
|
||||||
he->ptr = (void *) p;
|
he->ptr = (void *) p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue