gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.

* g10/gpg.c (main): Compose a block by curly braces.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2016-06-07 14:16:32 +09:00
parent 7257ea2d45
commit abeeb84a94
1 changed files with 6 additions and 2 deletions

View File

@ -4121,7 +4121,9 @@ main (int argc, char **argv)
{
x_usage = *argv++; argc--;
if (argc)
x_expire = *argv++; argc--;
{
x_expire = *argv++; argc--;
}
}
}
quick_generate_keypair (ctrl, username, x_algo, x_usage, x_expire);
@ -4195,7 +4197,9 @@ main (int argc, char **argv)
{
x_usage = *argv++; argc--;
if (argc)
x_expire = *argv++; argc--;
{
x_expire = *argv++; argc--;
}
}
}
keyedit_quick_addkey (ctrl, x_fpr, x_algo, x_usage, x_expire);