]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bogus test in body of a while loop
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Dec 2019 18:46:19 +0000 (19:46 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 26 Dec 2019 18:46:27 +0000 (19:46 +0100)
* lisp/gnus/nnheader.el (nnheader-find-nov-line): Fix return value
from while loop.

lisp/gnus/nnheader.el

index 28c4cebb2d1c5915e23361244bbb7f890008d86a..a30fa6379600d82cf97a931fa81b3673810d0b71 100644 (file)
@@ -487,8 +487,8 @@ the line could be found."
                      (< num article)))
        (forward-line 1)
        (setq found (point))
-       (or (eobp)
-           (= (setq num (read cur)) article)))
+       (unless (eobp)
+         (setq num (read cur))))
       (unless (eq num article)
        (goto-char found)))
     (beginning-of-line)