Fixup nc_test4/test_filter_misc.c too

This commit is contained in:
Mark Harfouche 2022-01-09 15:58:41 -05:00
parent 458fa0b8c7
commit cdd97754a9

View File

@ -184,22 +184,22 @@ openfile(void)
}
if(filterid != TEST_ID) {
fprintf(stderr,"open: test id mismatch: %d\n",filterid);
free(params);
return NC_EFILTER;
}
if(nparams != NPARAMS) {
size_t i;
unsigned int inqparams[MAXPARAMS];
size_t i;
fprintf(stderr,"nparams mismatch\n");
for(nerrs=0,i=0;i<nparams;i++) {
if(inqparams[i] != baseline[i]) {
if(params[i] != baseline[i]) {
fprintf(stderr,"open: testparam mismatch: %ld\n",(unsigned long)i);
nerrs++;
}
}
nerrs++;
}
}
}
if(nerrs > 0) return NC_EFILTER;
free(params);
if(params) free(params);
if(nerrs > 0) return NC_EFILTER;
/* Verify chunking */
if(!verifychunks())