Mercurial > hg > dmlib
comparison 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 |
comparison
equal
deleted
inserted
replaced
1277:7eedcf1d5af7 | 1278:5206e3d4e6b7 |
---|---|
1554 | 1554 |
1555 | 1555 |
1556 int main(int argc, char *argv[]) | 1556 int main(int argc, char *argv[]) |
1557 { | 1557 { |
1558 FILE *inFile = NULL; | 1558 FILE *inFile = NULL; |
1559 const DMC64ImageFormat *cfmt; | 1559 const DMC64ImageFormat *cfmt = NULL; |
1560 DMC64Image *cimage = NULL; | 1560 DMC64Image *cimage = NULL; |
1561 Uint8 *dataBuf = NULL; | 1561 Uint8 *dataBuf = NULL; |
1562 size_t dataSize; | 1562 size_t dataSize; |
1563 int i; | 1563 int i; |
1564 | 1564 |