[svn-r15556] Check options for H5Pset_alignment.

threshold is zero default (a valid value) but zero is not a valid alignment

tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes 2008-08-29 14:54:21 -05:00
parent 5d49cf770a
commit cf05c2d762

View File

@ -430,22 +430,15 @@ static int check_options(pack_opt_t *options)
/*--------------------------------------------------------------------------------
* verify alignment options; both threshold and alignment sizes must be present
* verify alignment options; threshold is zero default but alignment not
*---------------------------------------------------------------------------------
*/
#if 0
if ( options->alignment != 0 && options->threshold == 0 )
{
error_msg(progname, "threshold for H5Pset_alignment missing\n");
return -1;
}
if ( options->alignment == 0 && options->threshold != 0 )
{
error_msg(progname, "alignment for H5Pset_alignment missing\n");
return -1;
}
#endif
return 0;
}