Index: bmp.c |
=================================================================== |
--- bmp.c (revision 106486) |
+++ bmp.c (working copy) |
@@ -107,6 +107,8 @@ |
cjpeg_source_ptr src; |
FILE *file=NULL; |
+ memset(&cinfo, 0, sizeof(struct jpeg_compress_struct)); |
+ |
if(!filename || !buf || !w || !h || dstpf<0 || dstpf>=TJ_NUMPF) |
_throw("loadbmp(): Invalid argument"); |
@@ -189,6 +191,8 @@ |
FILE *file=NULL; |
char *ptr=NULL; |
+ memset(&dinfo, 0, sizeof(struct jpeg_decompress_struct)); |
+ |
if(!filename || !buf || w<1 || h<1 || srcpf<0 || srcpf>=TJ_NUMPF) |
_throw("savebmp(): Invalid argument"); |