aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Serrano Polo <javier@jasp.net>2020-08-20 19:59:17 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-10-08 09:30:30 +0200
commit505f1a87b32cb7bb0edbaf37e20ccdd46bbae2a3 (patch)
tree64eb2e1eb1fcf5aeec984f628904cb64bafce6c5
parentb589565650f7e8ef127327d46f59f9a2995edfda (diff)
zbarimg: fix stderr output when symbols are found
When zbarimg finds barcode symbols, it prints almost all the error message for the notfound case. Do not print this message. Signed-off-by: Javier Serrano Polo <javier@jasp.net>
-rw-r--r--zbarimg/zbarimg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c
index 52502b2..dd2d9e2 100644
--- a/zbarimg/zbarimg.c
+++ b/zbarimg/zbarimg.c
@@ -495,7 +495,7 @@ int main (int argc, const char *argv[])
#endif
#endif
fprintf(stderr, "\n");
- if(notfound)
+ if(notfound) {
fprintf(stderr, "%s", _(warning_not_found_head));
#if ENABLE_EAN == 1
fprintf(stderr, _("\t. EAN/UPC (EAN-13, EAN-8, EAN-2, EAN-5, UPC-A, UPC-E, ISBN-10, ISBN-13)\n"));
@@ -528,6 +528,7 @@ int main (int argc, const char *argv[])
fprintf(stderr, _("\t. PDF 417\n"));
#endif
fprintf(stderr, "%s", _(warning_not_found_tail));
+ }
}
if(num_images && notfound && !exit_code)
exit_code = 4;

Privacy Policy