aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");