gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 7 Jun 2016 05:16:32 +0000 (14:16 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 7 Jun 2016 05:16:32 +0000 (14:16 +0900)
* g10/gpg.c (main): Compose a block by curly braces.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/gpg.c

index df6c246..9adf169 100644 (file)
--- 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);