diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-11-20 21:29:56 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-11-20 21:29:56 +0100 |
commit | a16d9e0c25ed986c57c521aa87d87f6c343218a7 (patch) | |
tree | 9b0a38819ce69b9f1f9a187504224411d2dd8074 /fitz/filt_aesd.c | |
parent | 549dbe8e5563f9a228c8de35f07d0108e3adf74c (diff) | |
download | mupdf-a16d9e0c25ed986c57c521aa87d87f6c343218a7.tar.xz |
Malloc cannot return null. Clean up streams and filters.
Diffstat (limited to 'fitz/filt_aesd.c')
-rw-r--r-- | fitz/filt_aesd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/filt_aesd.c b/fitz/filt_aesd.c index 9b4c0962..122a284d 100644 --- a/fitz/filt_aesd.c +++ b/fitz/filt_aesd.c @@ -11,13 +11,13 @@ struct fz_aesd_s int ivcount; }; -fz_error -fz_newaesdfilter(fz_filter **fp, unsigned char *key, unsigned keylen) +fz_filter * +fz_newaesdfilter(unsigned char *key, unsigned keylen) { FZ_NEWFILTER(fz_aesd, f, aesdfilter); aes_setkey_dec(&f->aes, key, keylen * 8); f->ivcount = 0; - return fz_okay; + return (fz_filter *)f; } void |