summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-01-12 10:40:26 +0100
committerWerner Koch <wk@gnupg.org>2017-01-12 10:40:43 +0100
commitc99a09f111c5980ae034faaea61a00d9ad60463c (patch)
tree73e04edaad30a5b4bbe9360cb2443102bfb5be31 /g10
parenttests: Fix t-gettime for a time_t of 64 and a long of 32 bit. (diff)
downloadgnupg2-c99a09f111c5980ae034faaea61a00d9ad60463c.tar.xz
gnupg2-c99a09f111c5980ae034faaea61a00d9ad60463c.zip
gpg: Rename a var to avoid a shadowing warning.
* g10/keygen.c (keygen_set_std_prefs): Rename variable. -- I consider it better not to use the name of a commonly used function. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10')
-rw-r--r--g10/keygen.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index b4fddba00..98ef29efb 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -434,9 +434,11 @@ keygen_set_std_prefs (const char *string,int personal)
if(strlen(string))
{
- char *dup, *tok, *prefstring;
+ char *prefstringbuf;
+ char *tok, *prefstring;
- dup = prefstring = xstrdup (string); /* need a writable string! */
+ /* We need a writable string. */
+ prefstring = prefstringbuf = xstrdup (string);
while((tok=strsep(&prefstring," ,")))
{
@@ -470,7 +472,7 @@ keygen_set_std_prefs (const char *string,int personal)
}
}
- xfree (dup);
+ xfree (prefstringbuf);
}
if(!rc)