[trunk] fixed return value for compare_raw_files (fixes issue 453)

This commit is contained in:
Matthieu Darbois 2014-12-20 12:42:40 +00:00
parent dde788b59e
commit a504edf724
1 changed files with 10 additions and 9 deletions

View File

@ -120,7 +120,7 @@ int main(int argc, char **argv)
int pos = 0;
test_cmp_parameters inParam;
FILE *file_test=NULL, *file_base=NULL;
unsigned char equal = 1;
unsigned char equal = 0U; /* returns error by default */
/* Get parameters from command line*/
if (parse_cmdline_cmp(argc, argv, &inParam))
@ -142,6 +142,7 @@ int main(int argc, char **argv)
}
/* Read simultaneously the two files*/
equal = 1U;
while (equal)
{
unsigned char value_test = 0;