shithub: jbig2

Download patch

ref: 9df6dfdae0f2ffba6f1335a8a6c5e2a2274e0d84
parent: 8033c8336691c0b833cde32d47f4bbf8d7f4d4f2
author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
date: Sat Jun 23 17:12:19 EDT 2012

Bug 693050 : Fix error handling in 2908 folder

--- a/jbig2_halftone.c
+++ b/jbig2_halftone.c
@@ -245,7 +245,7 @@
     jbig2_free(ctx->allocator, GB_stats);
   }
 
-  return (segment->result != NULL) ? 0 : 1;
+  return (segment->result != NULL) ? 0 : -1;
 }
 
 /**