bug fix
authorceriel <none@none>
Fri, 6 Feb 1987 10:27:57 +0000 (10:27 +0000)
committerceriel <none@none>
Fri, 6 Feb 1987 10:27:57 +0000 (10:27 +0000)
modules/src/read_em/reade.c

index 16ba0c0..7c71bb3 100644 (file)
@@ -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();