shithub: jbig2

Download patch

ref: 3753ca9c4e9543d34f6e20c5c55eef15fc6afcf8
parent: d94bdb63779c6d3bfa43197c791912cb954ae109
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Sun Dec 18 13:12:33 EST 2005

Correct an invalid return value. Thanks to Leonardo for pointing this 
out.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@444 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_text.c
+++ b/jbig2_text.c
@@ -252,7 +252,7 @@
 	if (SBSYMCODES == NULL) {
 	    jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
 		"could not construct Symbol ID huffman table!");
-	    return NULL;
+	    return -1;
 	}
     }