[svn-r3227] ./hdf5/tools/h5ls.c

2000-12-28 12:03:41 Robb Matzke  <matzke@llnl.gov>
	* main: If the file cannot be opened then immediately try the next
	   argument. This prevents multiple error messages from
	   the same file.
This commit is contained in:
Robb Matzke 2000-12-29 13:35:32 -05:00
parent e6af68a029
commit a53fbbc045

View File

@ -2162,6 +2162,7 @@ main (int argc, char *argv[])
}
if (file<0) {
fprintf(stderr, "%s: unable to open file\n", argv[argno-1]);
continue;
}
if (oname) oname++;
if (!oname || !*oname) oname = root_name;