From de407aa9fa93192aad6773a53fe51295d9c8cb8e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Jun 2023 15:02:59 +0200 Subject: indexamajig: Avoid is_hdf5_file(NULL, ...) --- src/indexamajig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3