* cygpath.cc (doit): Empty file ignored using option -i.

This commit is contained in:
Corinna Vinschen
2002-01-15 14:07:42 +00:00
parent f062174ba5
commit 7b5c105b61
2 changed files with 11 additions and 2 deletions

View File

@ -161,8 +161,13 @@ doit (char *filename)
len = strlen (filename) + 100;
if (len == 100)
{
fprintf(stderr, "%s: can't convert empty path\n", prog_name);
exit (1);
if (!ignore_flag)
{
fprintf(stderr, "%s: can't convert empty path\n", prog_name);
exit (1);
}
else
exit (0);
}
}
else