diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-09-27 18:12:03 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-09-27 18:12:03 +0000 |
commit | ad05b22de350f87f295a09fb6e0745b91216aa21 (patch) | |
tree | 2cd2150cb4ba5e65161a9ba19bfcb4f3b156f170 /lib | |
parent | 9fc8800b6d906f4c9d9d8d464eea91dd2bc40ad3 (diff) |
Renamed a few variables to avoid shadowing global declarations.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/hash.c b/lib/hash.c index c8b5f8b37..69437bf48 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -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)); if(he) { - void *dup = malloc(key_len); - if(dup) { + void *dupkey = malloc(key_len); + if(dupkey) { /* 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->ptr = (void *) p; } |