[svn-r14221]

bug fix: avoid a segmentation fault when number of arguments is just one

solution: test if number of arguments is more than 1

tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes 2007-10-30 15:07:17 -05:00
parent b8bb790649
commit 1aa608c06b

View File

@ -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);