netpbm/netpbm-bmptopnm.patch
Petr Hracek d776db3079 New upstream release 10.71.02 (#1252352)
Signed-off-by: Petr Hracek <phracek@redhat.com>
2015-08-11 12:05:10 +02:00

14 lines
484 B
Diff

diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c
index a069092..20a0331 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -1328,7 +1328,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 */