diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 849ff25397e..3045dc305f2 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -629,7 +629,7 @@ scan_lisp_file (filename, mode) continue; } /* Skip the line break. */ - while (c == '\n' || c != '\r') + while (c == '\n' || c == '\r') c = getc (infile); /* Detect a dynamic doc string and save it for the next expression. */ if (c == '#')