From 799e9c48c1a210386873ae01a0f208675eafffe7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 22 Jan 2011 03:50:09 +0000 Subject: comment dead code and fix 2 missing NULL checks (pointer used after NULL check and checking against incorrect pointer before use). --- source/blender/imbuf/intern/jp2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/imbuf/intern/jp2.c') diff --git a/source/blender/imbuf/intern/jp2.c b/source/blender/imbuf/intern/jp2.c index 49920219d8c..c0f54898119 100644 --- a/source/blender/imbuf/intern/jp2.c +++ b/source/blender/imbuf/intern/jp2.c @@ -95,9 +95,9 @@ struct ImBuf *imb_jp2_decode(unsigned char *mem, size_t size, int flags) struct ImBuf *ibuf = 0; int use_float = 0; /* for precision higher then 8 use float */ - long signed_offsets[4] = {0,0,0,0}; - int float_divs[4]; - + long signed_offsets[4]= {0, 0, 0, 0}; + int float_divs[4]= {1, 1, 1, 1}; + int index; int w, h, depth; -- cgit v1.2.3