mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[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:
parent
e6af68a029
commit
a53fbbc045
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user