[trunk] final round of minor cleanups
This commit is contained in:
parent
6ee2a51edc
commit
b7bccf86c3
|
@ -560,32 +560,24 @@ int main(int argc, char **argv)
|
||||||
memsizetestfilename = (int)strlen(inParam.test_filename) + 1 + 5 + 2 + 4;
|
memsizetestfilename = (int)strlen(inParam.test_filename) + 1 + 5 + 2 + 4;
|
||||||
|
|
||||||
imageBase = readImageFromFilePGX( inParam.base_filename, nbFilenamePGXbase, inParam.separator_base);
|
imageBase = readImageFromFilePGX( inParam.base_filename, nbFilenamePGXbase, inParam.separator_base);
|
||||||
if ( imageBase != NULL)
|
if ( imageBase == NULL )
|
||||||
{
|
goto cleanup;
|
||||||
|
|
||||||
filenamePNGbase = (char*) malloc(memsizebasefilename);
|
filenamePNGbase = (char*) malloc(memsizebasefilename);
|
||||||
strcpy(filenamePNGbase, inParam.test_filename);
|
strcpy(filenamePNGbase, inParam.test_filename);
|
||||||
strcat(filenamePNGbase, ".base");
|
strcat(filenamePNGbase, ".base");
|
||||||
/*printf("filenamePNGbase = %s [%d / %d octets]\n",filenamePNGbase, strlen(filenamePNGbase),memsizebasefilename );*/
|
/*printf("filenamePNGbase = %s [%d / %d octets]\n",filenamePNGbase, strlen(filenamePNGbase),memsizebasefilename );*/
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*----------TEST IMAGE--------*/
|
/*----------TEST IMAGE--------*/
|
||||||
|
|
||||||
imageTest = readImageFromFilePGX(inParam.test_filename, nbFilenamePGXtest, inParam.separator_test);
|
imageTest = readImageFromFilePGX(inParam.test_filename, nbFilenamePGXtest, inParam.separator_test);
|
||||||
if ( imageTest != NULL)
|
if ( imageTest == NULL )
|
||||||
{
|
goto cleanup;
|
||||||
|
|
||||||
filenamePNGtest = (char*) malloc(memsizetestfilename);
|
filenamePNGtest = (char*) malloc(memsizetestfilename);
|
||||||
strcpy(filenamePNGtest, inParam.test_filename);
|
strcpy(filenamePNGtest, inParam.test_filename);
|
||||||
strcat(filenamePNGtest, ".test");
|
strcat(filenamePNGtest, ".test");
|
||||||
/*printf("filenamePNGtest = %s [%d / %d octets]\n",filenamePNGtest, strlen(filenamePNGtest),memsizetestfilename );*/
|
/*printf("filenamePNGtest = %s [%d / %d octets]\n",filenamePNGtest, strlen(filenamePNGtest),memsizetestfilename );*/
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*----------DIFF IMAGE--------*/
|
/*----------DIFF IMAGE--------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue