From 14819414e96409d06794e7c51772886575f23178 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Fri, 20 Dec 2002 01:14:46 +0000 Subject: [PATCH] Ok since no one cares about this I put a 5 second fix on it and won't worry about it anymore :) (initalized it to 0 and then later return 0 if its still 0 before doing the work) Kent -- mein@cs.umn.edu --- source/blender/imbuf/intern/hamx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/imbuf/intern/hamx.c b/source/blender/imbuf/intern/hamx.c index 4829b300e81..fefe8caa960 100644 --- a/source/blender/imbuf/intern/hamx.c +++ b/source/blender/imbuf/intern/hamx.c @@ -536,7 +536,7 @@ short imb_enc_anim(struct ImBuf *ibuf, int file) /* struct ImBuf *ibuf; */ /* int file; */ { - int step, steps, size, i, skip; + int step, size, i, skip, steps = 0; uchar *buf1, *crect, *_buf1, *_buf2, *bufend; short ok = TRUE; @@ -555,6 +555,7 @@ short imb_enc_anim(struct ImBuf *ibuf, int file) steps = 2; break; } + if (steps == 0) return 0; size = ((ibuf->x + 1)* (ibuf->y + 1)) / steps + 1024; if ((_buf1 = malloc(size)) == 0) return(0);