Mercurial > hg > dmlib
diff tools/gfxconv.c @ 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 | 5b8245e5f785 |
children | 300a51e98fc3 |
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;