netpbm/netpbm-10.27-bmptopnm.patch
Jindrich Novy 7c46c91b0e - fix .ppmquantall patch (#207799)
- merge cmapsize with bmptopnm patch (#224554)
2007-08-20 12:04:27 +00:00

12 lines
489 B
Diff

--- 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,
xel ** const colormapP,
bool const verbose) {
- xel * colormap; /* malloc'ed */
+ xel * colormap = NULL; /* malloc'ed */
unsigned int pos;
/* Current byte position in the BMP file */