diff options
author | NIIBE Yutaka <[email protected]> | 2016-06-07 05:16:32 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-06-07 05:16:32 +0000 |
commit | abeeb84a94be815a16e678b319cb5c8bffde2811 (patch) | |
tree | b60a35d8aa779b8a963e7ec25b73f9012c31c335 | |
parent | gpg: Use --keyid-format=none by default. (diff) | |
download | gnupg-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |