Two more variables that were not initalized.

cvs diff included below.

Kent
--
mein@cs.umn.edu

Index: png_encode.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/png_encode.c,v
retrieving revision 1.3
diff -u -r1.3 png_encode.c
--- png_encode.c        2002/11/25 12:02:00     1.3
+++ png_encode.c        2002/12/20 01:28:18
@@ -91,7 +91,7 @@
        unsigned char *pixels = 0;
        unsigned char *from, *to;
        png_bytepp row_pointers = 0;
-       int i, bytesperpixel, color_type;
+       int i, bytesperpixel, color_type = PNG_COLOR_TYPE_GRAY;
        FILE *fp = 0;

Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.3
diff -u -r1.3 targa.c
--- targa.c     2002/11/25 12:02:00     1.3
+++ targa.c     2002/12/20 01:28:20
@@ -247,7 +247,7 @@
        char buf[20];
        FILE *fildes;
        int i;
-       short ok;
+       short ok = 0;
This commit is contained in:
Kent Mein 2002-12-20 01:29:14 +00:00
parent 14819414e9
commit cf13c60fa4
2 changed files with 2 additions and 2 deletions

@ -91,7 +91,7 @@ short IMB_png_encode(struct ImBuf *ibuf, int file, int flags)
unsigned char *pixels = 0;
unsigned char *from, *to;
png_bytepp row_pointers = 0;
int i, bytesperpixel, color_type;
int i, bytesperpixel, color_type = PNG_COLOR_TYPE_GRAY;
FILE *fp = 0;
bytesperpixel = (ibuf->depth + 7) >> 3;

@ -247,7 +247,7 @@ short imb_savetarga(struct ImBuf * ibuf, int file, int flags)
char buf[20];
FILE *fildes;
int i;
short ok;
short ok = 0;
if (ibuf == 0) return (0);
if (ibuf->rect == 0) return (0);