changeset 1278:5206e3d4e6b7

Fix a segfault by initializing the cfmt struct pointer to NULL. Duh.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Aug 2017 00:43:48 +0300
parents 7eedcf1d5af7
children 0d3f5f44c0c4
files tools/gfxconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri Apr 21 18:39:32 2017 +0300
+++ b/tools/gfxconv.c	Fri Aug 18 00:43:48 2017 +0300
@@ -1556,7 +1556,7 @@
 int main(int argc, char *argv[])
 {
     FILE *inFile = NULL;
-    const DMC64ImageFormat *cfmt;
+    const DMC64ImageFormat *cfmt = NULL;
     DMC64Image *cimage = NULL;
     Uint8 *dataBuf = NULL;
     size_t dataSize;