shithub: jbig2

Download patch

ref: 3ad762a5c66d26f937d640def6e647003b36fc41
parent: 117c8cb448c1f43ce2e9027e8ac155283d68062f
author: Sebastian Rasmussen <sebras@gmail.com>
date: Mon Mar 19 22:28:20 EDT 2018

Fix 698840: Fix typo in exit code in command-line tool.

This was introduced in 301726dd5c9c60c1e54eb0965c1d45b36350ce2e.

Thanks to Max Rees for reporting.

--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -390,7 +390,7 @@
     uint8_t buf[4096];
     jbig2dec_params_t params;
     int filearg;
-    int result = 0;
+    int result = 1;
 
     /* set defaults */
     params.mode = render;
@@ -518,7 +518,7 @@
     }                           /* end params.mode switch */
 
     /* fin */
-    result = 1;
+    result = 0;
 
 cleanup:
     if (params.output_file)