mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[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:
parent
b8bb790649
commit
1aa608c06b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user