Initialize the attributes structure. Random data was causing the test

to fail sporadically.
This commit is contained in:
Joel Sherrill
2000-01-06 22:44:27 +00:00
parent 89184f94db
commit 98c875a15b
2 changed files with 4 additions and 0 deletions

View File

@@ -81,6 +81,8 @@ void TestCre()
puts( "Init - cre_mbf - negative values for bufsz returns E_PAR" );
pk_cmbf.bufsz = -1;
pk_cmbf.maxmsz = 100;
pk_cmbf.mbfatr = 0;
pk_cmbf.exinf = NULL;
status = cre_mbf( 1, &pk_cmbf );
assert( status == E_PAR );

View File

@@ -81,6 +81,8 @@ void TestCre()
puts( "Init - cre_mbf - negative values for bufsz returns E_PAR" );
pk_cmbf.bufsz = -1;
pk_cmbf.maxmsz = 100;
pk_cmbf.mbfatr = 0;
pk_cmbf.exinf = NULL;
status = cre_mbf( 1, &pk_cmbf );
assert( status == E_PAR );