summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diff_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index a5b9328..cf83c22 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -47,7 +47,7 @@ void parse_input(int argc,
*-------------------------------------------------------------------------
*/
- if ( (strcmp("-V",argv[1])==0) )
+ if ( argv[1] && (strcmp("-V",argv[1])==0) )
{
print_version("h5diff");
h5diff_exit(EXIT_SUCCESS);