2007-01-29 12:50:54 +00:00
|
|
|
--- netpbm-10.35/converter/other/bmptopnm.c.bmptopnm 2007-01-29 13:08:46.000000000 +0100
|
|
|
|
+++ netpbm-10.35/converter/other/bmptopnm.c 2007-01-29 13:32:21.000000000 +0100
|
|
|
|
@@ -1262,7 +1262,7 @@ readBmp(FILE * const ifP,
|
2005-05-09 10:18:31 +00:00
|
|
|
xel ** const colormapP,
|
|
|
|
bool const verbose) {
|
|
|
|
|
|
|
|
- xel * colormap; /* malloc'ed */
|
|
|
|
+ xel * colormap = NULL; /* malloc'ed */
|
|
|
|
unsigned int pos;
|
2006-02-28 12:59:04 +00:00
|
|
|
/* Current byte position in the BMP file */
|
2005-05-09 10:18:31 +00:00
|
|
|
|
2007-01-29 12:50:54 +00:00
|
|
|
@@ -1278,7 +1278,6 @@ readBmp(FILE * const ifP,
|
|
|
|
BMPreadfileheader(ifP, &bytesRead, &offBits);
|
|
|
|
pos += bytesRead;
|
2006-02-28 12:59:04 +00:00
|
|
|
}
|
2007-01-29 12:50:54 +00:00
|
|
|
- if(BMPheader.cmapsize != 0)
|
|
|
|
{
|
|
|
|
unsigned int bytesRead;
|
|
|
|
BMPreadinfoheader(ifP, &bytesRead, &BMPheader);
|