tools: exit with non-zero value on uchardet error.

This commit is contained in:
Jehan 2016-01-21 18:16:42 +01:00
parent b6d872bbec
commit 248d6dbd35

View File

@ -60,7 +60,7 @@ void detect(FILE * fp)
if (retval != 0) if (retval != 0)
{ {
fprintf(stderr, "Handle data error.\n"); fprintf(stderr, "Handle data error.\n");
exit(0); exit(1);
} }
} }
uchardet_data_end(handle); uchardet_data_end(handle);