changeset 1524:532c3ceaec1a

Fix uninitilized variable.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 23:43:57 +0300
parents 1750498bc746
children 9602f7ea1e7e
files tools/gfxconv.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }