aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2016-06-07 05:16:32 +0000
committerNIIBE Yutaka <[email protected]>2016-06-07 05:16:32 +0000
commitabeeb84a94be815a16e678b319cb5c8bffde2811 (patch)
treeb60a35d8aa779b8a963e7ec25b73f9012c31c335
parentgpg: Use --keyid-format=none by default. (diff)
downloadgnupg-abeeb84a94be815a16e678b319cb5c8bffde2811.tar.gz
gnupg-abeeb84a94be815a16e678b319cb5c8bffde2811.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/gpg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index df6c24699..9adf16938 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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);