diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-20 01:13:37 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-20 01:13:37 +0300 |
commit | 734e358eb48e6eba6f8906340fc4cb4a809ca218 (patch) | |
tree | e376aa004ca7e9aa56233f2b89fa9c8f12a199d8 | |
parent | 59cee3c47f369e88cfd5dd679cc2de76525e2fcc (diff) |
Fixed two uninitalized vars:
Kent
/cvs01/blender/source/blender/imbuf/intern/iris.c,v
retrieving revision 1.3
diff -u -r1.3 iris.c
--- iris.c 2002/11/25 12:02:00 1.3
+++ iris.c 2002/12/19 22:12:53
@@ -212,7 +212,7 @@
/* unsigned int *tab; */
/* int len; */
{
- int r;
+ int r = 0;
while(len) {
r = putlong(outf,*tab++);
@@ -548,7 +548,7 @@
{
FILE *outf;
IMAGE *image;
- int tablen, y, z, pos, len;
+ int tablen, y, z, pos, len = 0;
int *starttab, *lengthtab;
unsigned char *rlebuf;
-rw-r--r-- | source/blender/imbuf/intern/iris.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/iris.c b/source/blender/imbuf/intern/iris.c index e3a3e490941..fb875bf86ff 100644 --- a/source/blender/imbuf/intern/iris.c +++ b/source/blender/imbuf/intern/iris.c @@ -212,7 +212,7 @@ static int writetab(FILE *outf, unsigned int *tab, int len) /* unsigned int *tab; */ /* int len; */ { - int r; + int r = 0; while(len) { r = putlong(outf,*tab++); @@ -548,7 +548,7 @@ static int output_iris(unsigned int *lptr, int xsize, int ysize, int zsize, int { FILE *outf; IMAGE *image; - int tablen, y, z, pos, len; + int tablen, y, z, pos, len = 0; int *starttab, *lengthtab; unsigned char *rlebuf; unsigned int *lumbuf; |