* cygcheck.cc (dump_sysinfo): Warn about empty path-components.

This commit is contained in:
Corinna Vinschen 2004-10-06 09:46:40 +00:00
parent b0637a5191
commit 5f175ea697
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-10-06 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (dump_sysinfo): Warn about empty path-components.
2004-10-04 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (pretty_id): Close pipe.

View File

@ -957,7 +957,10 @@ dump_sysinfo ()
while (1)
{
for (e = s; *e && *e != sep; e++);
printf ("\t%.*s\n", e - s, s);
if (e-s)
printf ("\t%.*s\n", e - s, s);
else
puts ("\tWarning: Empty path-component");
count_path_items++;
if (!*e)
break;