From: ceriel Date: Fri, 6 Feb 1987 10:27:57 +0000 (+0000) Subject: bug fix X-Git-Tag: release-5-5~4735 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e60f0f3981c91ffa13803f21f00d178bf87855a0;p=ack.git bug fix --- diff --git a/modules/src/read_em/reade.c b/modules/src/read_em/reade.c index 16ba0c0fd..7c71bb362 100644 --- a/modules/src/read_em/reade.c +++ b/modules/src/read_em/reade.c @@ -619,7 +619,12 @@ gethead() argnum = 1; for (;;) { EM_lineno++; - if ((c = getbyte()) == EOF) return 0; + c = getbyte(); + if (c == COMMENTSTARTER) { + do c = getbyte(); + while (c != '\n' && c != EOF); + } + if (c == EOF) return 0; if (c == '\n') continue; if (isspace(c)) { c = nospace();