From 248d6dbd351c22989090d318128cb38b11a89f98 Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 21 Jan 2016 18:16:42 +0100 Subject: [PATCH] tools: exit with non-zero value on uchardet error. --- src/tools/uchardet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);