From e525578f4d2aecbd0ea53208fa83ec6f3e2f163a Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Tue, 31 Aug 2004 13:10:45 +0000 Subject: Some small clean ups again... I added ifdef's around a var declaration since the code using it had them... Also initalized two vars that were questionable if they could reach a state where they weren't assigned. Kent --- source/blender/imbuf/intern/anim.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/imbuf/intern/anim.c') diff --git a/source/blender/imbuf/intern/anim.c b/source/blender/imbuf/intern/anim.c index 190267b2d41..e3ae7a372f8 100644 --- a/source/blender/imbuf/intern/anim.c +++ b/source/blender/imbuf/intern/anim.c @@ -205,10 +205,11 @@ static void free_anim_movie(struct anim * anim) { ; } #endif static int an_stringdec(char *string, char* kop, char *staart,unsigned short *numlen) { - unsigned short len,nums,nume; + unsigned short len,nume,nums=0; short i,found=FALSE; len=strlen(string); + nume = len; for(i=len-1;i>=0;i--){ if (string[i]=='/') break; @@ -255,7 +256,9 @@ unsigned short numlen, int pic) { static void free_anim_avi (struct anim *anim) { +#if defined(_WIN32) && !defined(FREE_WINDOWS) int i; +#endif if (anim == NULL) return; if (anim->avi == NULL) return; -- cgit v1.2.3