aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 11eb587c0..3a9a8e7cb 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -413,9 +413,9 @@ keygen_set_std_prefs (const char *string,int personal)
if(strlen(string))
{
- char *tok,*prefstring;
+ char *dup, *tok, *prefstring;
- prefstring=xstrdup(string); /* need a writable string! */
+ dup = prefstring = xstrdup (string); /* need a writable string! */
while((tok=strsep(&prefstring," ,")))
{
@@ -449,7 +449,7 @@ keygen_set_std_prefs (const char *string,int personal)
}
}
- xfree(prefstring);
+ xfree (dup);
}
if(!rc)