diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-20 04:29:14 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-20 04:29:14 +0300 |
commit | cf13c60fa4b8cbeadd557eba6cf2d687768ba537 (patch) | |
tree | 661f379044af62877cf68848ba08e9e42b55ccc5 /source/blender/imbuf | |
parent | 14819414e96409d06794e7c51772886575f23178 (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')
-rw-r--r-- | source/blender/imbuf/intern/png_encode.c | 2 | ||||
-rw-r--r-- | 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); |