aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-01 15:02:59 +0200
committerThomas White <taw@physics.org>2023-06-01 15:02:59 +0200
commitde407aa9fa93192aad6773a53fe51295d9c8cb8e (patch)
treeae8652b5e965ebaa55481776b485fda63f98041b /src/indexamajig.c
parent98acc4673f5588dfb9b9fae121600e72b00ac9d2 (diff)
indexamajig: Avoid is_hdf5_file(NULL, ...)
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 358ba5a3..427843bc 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -1168,7 +1168,7 @@ int main(int argc, char *argv[])
return 1;
}
- if ( is_hdf5_file(args.filename, &err) ) {
+ if ( (args.filename != NULL) && is_hdf5_file(args.filename, &err) ) {
ERROR("Your input file appears to be an HDF5 file.\n");
ERROR("The input file should be a list of data files, not the "
"data file itself.\n");