summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2022-02-04 16:53:55 (GMT)
committerGitHub <noreply@github.com>2022-02-04 16:53:55 (GMT)
commit36d9a165e428eb883f9fd72b6707555536292845 (patch)
tree61848a7a985725dcbb52daab3a986ff490cf909c /tools/lib/h5tools.c
parent856de93673f2bd097b90e2803475ef4fc3d689fa (diff)
downloadhdf5-36d9a165e428eb883f9fd72b6707555536292845.zip
hdf5-36d9a165e428eb883f9fd72b6707555536292845.tar.gz
hdf5-36d9a165e428eb883f9fd72b6707555536292845.tar.bz2
Fix a few issues noted by LGTM (#1421)
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index db8df16..da55136 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -945,7 +945,7 @@ h5tools_fopen(const char *fname, unsigned flags, hid_t fapl_id, hbool_t use_spec
* as TRUE, we should return failure now since the file couldn't be opened with
* the VFL driver/VOL connector that was set on the FAPL by the caller.
*/
- if (fid < 0 && use_specific_driver)
+ if (use_specific_driver)
H5TOOLS_GOTO_ERROR(H5I_INVALID_HID, "failed to open file using specified FAPL");
/*