# HG changeset patch # User Matti Hamalainen # Date 1526071437 -10800 # Node ID 532c3ceaec1a63cfcae2bb922669082a6597b091 # Parent 1750498bc746410b39977214e32b3c62587e08f6 Fix uninitilized variable. diff -r 1750498bc746 -r 532c3ceaec1a tools/gfxconv.c --- a/tools/gfxconv.c Fri May 11 23:34:48 2018 +0300 +++ b/tools/gfxconv.c Fri May 11 23:43:57 2018 +0300 @@ -1416,7 +1416,7 @@ int dmDumpSpritesAndChars(const Uint8 *dataBuf, const size_t dataSize, const size_t realOffs) { - int ret, itemCount, outWidth, outWidthPX, outHeight; + int ret = DMERR_OK, itemCount, outWidth, outWidthPX, outHeight; size_t offs, outSize; switch (optInFormat) @@ -1585,8 +1585,6 @@ } } - ret = DMERR_OK; - error: return ret; }