From a16d9e0c25ed986c57c521aa87d87f6c343218a7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 20 Nov 2009 21:29:56 +0100 Subject: Malloc cannot return null. Clean up streams and filters. --- fitz/filt_lzwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fitz/filt_lzwd.c') diff --git a/fitz/filt_lzwd.c b/fitz/filt_lzwd.c index 3fb5a759..d57d399f 100644 --- a/fitz/filt_lzwd.c +++ b/fitz/filt_lzwd.c @@ -42,8 +42,8 @@ struct fz_lzwd_s lzw_code table[NUMCODES]; }; -fz_error -fz_newlzwd(fz_filter **fp, fz_obj *params) +fz_filter * +fz_newlzwd(fz_obj *params) { int i; @@ -83,7 +83,7 @@ fz_newlzwd(fz_filter **fp, fz_obj *params) lzw->oldcode = -1; lzw->resume = 0; - return fz_okay; + return (fz_filter *)lzw; } void -- cgit v1.2.3