1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

* lisp/subr.el (read-passwd): Don't delete return value (Bug#22027).

This commit is contained in:
Noam Postavsky 2017-06-03 23:41:53 -04:00
parent 3632633cab
commit 882f81fdb4

View 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))