# HG changeset patch # User Matti Hamalainen # Date 1530223999 -10800 # Node ID f171b929b63121b53eec7cac4673316cf4d0a8c6 # Parent f530a858c06fc09c4934243f8b7bdd4b009eb8cf Do not reference uninitialized value in IFF writer, although in this case it is harmless as the garbage value is overwritten later. diff -r f530a858c06f -r f171b929b631 tools/libgfx.c --- a/tools/libgfx.c Fri Jun 29 00:59:55 2018 +0300 +++ b/tools/libgfx.c Fri Jun 29 01:13:19 2018 +0300 @@ -1918,7 +1918,7 @@ dmMakeIFFChunkIDStr(chunk); if (!dmf_write_be32(fp, chunk->id) || - !dmf_write_be32(fp, chunk->size)) + !dmf_write_be32(fp, 0)) { return dmError(DMERR_FREAD, "IFF: Could not write IFF '%s' chunk header.\n",