From bc78276e81956b3caa8a5eb7ef26959fa4c84b7b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 22 May 2017 16:53:18 -0400 Subject: [PATCH] * lisp/mail/rfc2047.el (rfc2047-decode-encoded-words): Set `words` to nil. --- lisp/mail/rfc2047.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el index bb8bc01dce5..e2af86b3246 100644 --- a/lisp/mail/rfc2047.el +++ b/lisp/mail/rfc2047.el @@ -952,6 +952,7 @@ ENCODED-WORD)." (push (cons cs text) rest)) ;; Don't decode encoded-word. (push (cons nil (nth 3 word)) rest))) + (setq words nil) (while rest ;; FIXME: This looks O(N²). Can we make it more efficient ;; with something like mapconcat? -- 2.39.2