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>
This commit is contained in:
Werner Koch 2017-01-12 10:40:26 +01:00
parent 5c0777e1ca
commit c99a09f111
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 3 deletions

View File

@ -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)