Fixed.
[elisp/epg.git] / epg.el
diff --git a/epg.el b/epg.el
index 356ad57..7993b48 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -1663,8 +1663,7 @@ This function is for internal use only."
   (let ((args (append (if epg-gpg-home-directory
                          (list "--homedir" epg-gpg-home-directory))
                      '("--with-colons" "--no-greeting" "--batch"
-                           "--with-fingerprint"
-                           "--with-fingerprint")
+                       "--with-fingerprint" "--with-fingerprint")
                      (unless (eq (epg-context-protocol context) 'CMS)
                        '("--fixed-list-mode"))))
        (list-keys-option (if (memq mode '(t secret))
@@ -1674,11 +1673,14 @@ This function is for internal use only."
                              "--list-sigs")))
        (coding-system-for-read 'binary)
        keys string field index)
-    (unless (listp name)
-      (setq name (list name)))
-    (while name
-      (setq args (append args (list list-keys-option (car name)))
-           name (cdr name)))
+    (if name
+       (progn
+         (unless (listp name)
+           (setq name (list name)))
+         (while name
+           (setq args (append args (list list-keys-option (car name)))
+                 name (cdr name))))
+      (setq args (append args (list list-keys-option))))
     (with-temp-buffer
       (apply #'call-process
             (if (eq (epg-context-protocol context) 'CMS)