changeset 974:cbf9b9b4fdea

Fix a possibly uninitialized variable warning.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Feb 2015 14:18:28 +0200
parents 15e6c2bd207b
children 139b801f8d1c
files tools/gfxconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri Feb 27 14:17:24 2015 +0200
+++ b/tools/gfxconv.c	Fri Feb 27 14:18:28 2015 +0200
@@ -1350,7 +1350,8 @@
 
 int dmDumpSpritesAndChars(FILE *inFile)
 {
-    int dataOffs, itemCount, outWidth, outWidthPX, outHeight, ret;
+    int dataOffs, itemCount, outWidth, outWidthPX, outHeight;
+    int ret = DMERR_OK;
     size_t bufSize;
     Uint8 *bufData;