From cf13c60fa4b8cbeadd557eba6cf2d687768ba537 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Fri, 20 Dec 2002 01:29:14 +0000 Subject: [PATCH] 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; --- source/blender/imbuf/intern/png_encode.c | 2 +- source/blender/imbuf/intern/targa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/imbuf/intern/png_encode.c b/source/blender/imbuf/intern/png_encode.c index d5d25dceca6..fbc9afd7b2c 100644 --- a/source/blender/imbuf/intern/png_encode.c +++ b/source/blender/imbuf/intern/png_encode.c @@ -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; diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c index fc098deddf4..68db04b52c1 100644 --- a/source/blender/imbuf/intern/targa.c +++ b/source/blender/imbuf/intern/targa.c @@ -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);