diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-25 23:35:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 23:35:25 (GMT) |
commit | 32cb23fe7e5f0a29d113960a36039adfde8398d8 (patch) | |
tree | 271a5ce6b755bcd95deb355426efe9246498fde4 /test/h5test.c | |
parent | e367c80b39529c9a863c3236e25bfb46b707b815 (diff) | |
download | hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.zip hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.tar.gz hdf5-32cb23fe7e5f0a29d113960a36039adfde8398d8.tar.bz2 |
Merge of mostly clang-tidy changes from 1.12 (#965)
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c index d5ebfdf..8d0960e 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1528,6 +1528,9 @@ h5_make_local_copy(const char *origfilename, const char *local_copy_name) void * buf = NULL; /* Buffer for copying data */ const char *filename = H5_get_srcdir_filename(origfilename); /* Get the test file name to copy */ + if (!filename) + goto error; + /* Allocate copy buffer */ if (NULL == (buf = HDcalloc((size_t)1, (size_t)READ_BUF_SIZE))) goto error; |