diff options
-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); |