summaryrefslogtreecommitdiffstats
path: root/src/H5FDfamily.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-11-01 13:16:33 (GMT)
committerGitHub <noreply@github.com>2023-11-01 13:16:33 (GMT)
commit562c53c44a22c979419deb1cb025b2a74900fbac (patch)
treec50148d3341883aff1aaa536e839c5d233bb43f6 /src/H5FDfamily.c
parenta654b2c1c5670010e14d8fba6d287ce62c87169a (diff)
downloadhdf5-562c53c44a22c979419deb1cb025b2a74900fbac.zip
hdf5-562c53c44a22c979419deb1cb025b2a74900fbac.tar.gz
hdf5-562c53c44a22c979419deb1cb025b2a74900fbac.tar.bz2
Fix misc. warnings from GCC when compiling with -fsanitize=undefined (#3787)
Diffstat (limited to 'src/H5FDfamily.c')
-rw-r--r--src/H5FDfamily.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c
index 94805a2..3f43ae9 100644
--- a/src/H5FDfamily.c
+++ b/src/H5FDfamily.c
@@ -1427,7 +1427,8 @@ H5FD__family_delete(const char *filename, hid_t fapl_id)
FUNC_ENTER_PACKAGE
- assert(filename);
+ if (!filename)
+ HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL, "invalid filename pointer");
/* Get the driver info (for the member fapl)
* The family_open call accepts H5P_DEFAULT, so we'll accept that here, too.