summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-09-15 19:27:23 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-09-15 19:27:23 (GMT)
commit8656a64d002335cdb40b846dd8eb9013cc295226 (patch)
tree031cfb619394dc14a59887c3318de2cd3d52dd98 /src/H5G.c
parent0cd492bb8e5fb8db0d227ad1fc6073be14e36b44 (diff)
downloadhdf5-8656a64d002335cdb40b846dd8eb9013cc295226.zip
hdf5-8656a64d002335cdb40b846dd8eb9013cc295226.tar.gz
hdf5-8656a64d002335cdb40b846dd8eb9013cc295226.tar.bz2
[svn-r83] Bug fixed in H5G_namei().
Arg type changes in H5Bprivate.h Sorted Makefile.in
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 1cffed5..8096daf 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -263,6 +263,11 @@ H5G_namei (hdf5_file_t *f, H5G_entry_t *cwd, const char *name,
H5O_reset (H5O_NAME, &mesg);
*base = *dir;
aside = TRUE;
+ } else {
+ /* component not found */
+ H5O_reset (H5O_NAME, &mesg);
+ if (dir_ent) *dir_ent = *dir;
+ HRETURN_ERROR (H5E_DIRECTORY, H5E_NOTFOUND, -2);
}
H5O_reset (H5O_NAME, &mesg);
} else {