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