mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
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:
parent
5c0777e1ca
commit
c99a09f111
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user