mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
tools: exit with non-zero value on uchardet error.
This commit is contained in:
parent
b6d872bbec
commit
248d6dbd35
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user