comparison tools/gfxconv.c @ 1524:532c3ceaec1a

Fix uninitilized variable.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 23:43:57 +0300
parents 0d1cf72fb732
children 9602f7ea1e7e
comparison
equal deleted inserted replaced
1523:1750498bc746 1524:532c3ceaec1a
1414 } 1414 }
1415 1415
1416 1416
1417 int dmDumpSpritesAndChars(const Uint8 *dataBuf, const size_t dataSize, const size_t realOffs) 1417 int dmDumpSpritesAndChars(const Uint8 *dataBuf, const size_t dataSize, const size_t realOffs)
1418 { 1418 {
1419 int ret, itemCount, outWidth, outWidthPX, outHeight; 1419 int ret = DMERR_OK, itemCount, outWidth, outWidthPX, outHeight;
1420 size_t offs, outSize; 1420 size_t offs, outSize;
1421 1421
1422 switch (optInFormat) 1422 switch (optInFormat)
1423 { 1423 {
1424 case FFMT_CHAR: 1424 case FFMT_CHAR:
1582 ret = dmError(DMERR_INVALID_ARGS, 1582 ret = dmError(DMERR_INVALID_ARGS,
1583 "Sequential output not supported for spr/char -> bitmap conversion.\n"); 1583 "Sequential output not supported for spr/char -> bitmap conversion.\n");
1584 goto error; 1584 goto error;
1585 } 1585 }
1586 } 1586 }
1587
1588 ret = DMERR_OK;
1589 1587
1590 error: 1588 error:
1591 return ret; 1589 return ret;
1592 } 1590 }
1593 1591