]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (read-passwd): Don't delete return value (Bug#22027).
authorNoam Postavsky <npostavs@gmail.com>
Sun, 4 Jun 2017 03:41:53 +0000 (23:41 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 5 Jun 2017 22:57:32 +0000 (18:57 -0400)
lisp/subr.el

index 0dce02de8ba9ec292a33e8cdc742b596f16ee2a7..ef00286b341a44760d78c9b002dcd7197bc3029d 100644 (file)
@@ -2268,7 +2268,7 @@ by doing (clear-string STRING)."
                 (second (read-passwd "Confirm password: " nil default)))
             (if (equal first second)
                 (progn
-                  (and (arrayp second) (clear-string second))
+                  (and (arrayp second) (not (eq first second)) (clear-string second))
                   (setq success first))
               (and (arrayp first) (clear-string first))
               (and (arrayp second) (clear-string second))