You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/uchardet/files/uchardet-0.0.5-fix-return-c...

20 lines
554 B

commit 248d6dbd351c22989090d318128cb38b11a89f98
Author: Jehan <jehan@girinstud.io>
Date: Thu Jan 21 18:16:42 2016 +0100
tools: exit with non-zero value on uchardet error.
diff --git a/src/tools/uchardet.cpp b/src/tools/uchardet.cpp
index 91912a0..bcfa234 100644
--- a/src/tools/uchardet.cpp
+++ b/src/tools/uchardet.cpp
@@ -60,7 +60,7 @@ void detect(FILE * fp)
if (retval != 0)
{
fprintf(stderr, "Handle data error.\n");
- exit(0);
+ exit(1);
}
}
uchardet_data_end(handle);