Fix incorrect working about 'Missing semicolon' from cnvwindeps.exe

This commit is contained in:
Gregory Nutt 2016-01-26 18:27:37 -06:00
parent 3dcafdb20a
commit 4c3194f768
1 changed files with 9 additions and 1 deletions

View File

@ -213,10 +213,18 @@ int main(int argc, char **argv, char **envp)
if (begin)
{
path = skip_spaces(next);
if (*path == '#')
{
/* Comment line */
puts(g_line);
break;
}
next = strchr(path, ':');
if (!next)
{
fprintf(stderr, "%lu: Expected semicolon\n", g_lineno);
fprintf(stderr, "%lu: Expected colon\n", g_lineno);
exit(EXIT_FAILURE);
}