Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2002-12-20 04:29:14 +0300
committerKent Mein <mein@cs.umn.edu>2002-12-20 04:29:14 +0300
commitcf13c60fa4b8cbeadd557eba6cf2d687768ba537 (patch)
tree661f379044af62877cf68848ba08e9e42b55ccc5 /source/blender/imbuf/intern/targa.c
parent14819414e96409d06794e7c51772886575f23178 (diff)
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;
Diffstat (limited to 'source/blender/imbuf/intern/targa.c')
-rw-r--r--source/blender/imbuf/intern/targa.c2
1 files changed, 1 insertions, 1 deletions
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);