mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Back out prev. NetBSD fix, it cause skipping some error constructions,
don't delete initial space from line instead
This commit is contained in:
parent
33e5f8f7b0
commit
2f22cc074c
1 changed files with 3 additions and 5 deletions
|
|
@ -2256,10 +2256,8 @@ test_char:
|
|||
ep = line;
|
||||
while (*ep)
|
||||
++ep;
|
||||
while (ep > line && (ep[-1] == ' ' || ep[-1] == '\t')) {
|
||||
if (ep > line + 1 && ep[-2] == '\\')
|
||||
break;
|
||||
if (ep == line + 1 && ep[-1] == '\t')
|
||||
while (ep > line + 1 && (ep[-1] == ' ' || ep[-1] == '\t')) {
|
||||
if (ep[-2] == '\\')
|
||||
break;
|
||||
--ep;
|
||||
}
|
||||
|
|
@ -2405,7 +2403,7 @@ Parse_File(name, stream)
|
|||
goto nextLine;
|
||||
}
|
||||
}
|
||||
if (*line == '#' || *line == '\0') {
|
||||
if (*line == '#') {
|
||||
/* If we're this far, the line must be a comment. */
|
||||
goto nextLine;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue