slackware-current/source/l/netpbm/netpbm-bmptopnm.patch
Patrick J Volkerding bcec1638cf Mon Jul 22 22:09:56 UTC 2019
a/aaa_terminfo-6.1_20190720-x86_64-1.txz:  Upgraded.
ap/squashfs-tools-20190721_95230e2-x86_64-1.txz:  Upgraded.
l/ncurses-6.1_20190720-x86_64-1.txz:  Upgraded.
l/netpbm-10.87.00-x86_64-1.txz:  Upgraded.
n/net-tools-20181103_0eebece-x86_64-1.txz:  Upgraded.
2019-07-23 08:59:47 +02:00

13 lines
484 B
Diff

diff --git a/converter/other/bmptopnm.c b/converter/other/bmptopnm.c
index 3f66634..ca4f944 100644
--- a/converter/other/bmptopnm.c
+++ b/converter/other/bmptopnm.c
@@ -1494,7 +1494,7 @@ readBmp(FILE * const ifP,
unsigned int * const cmapSizeP,
bool const verbose) {
- xel * colormap; /* malloc'ed */
+ xel * colormap = NULL; /* malloc'ed */
unsigned int pos;
/* Current byte position in the BMP file */