changeset 1891:91b80990043c

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 25 Jun 2018 17:56:35 +0300
parents ee95059b4c18
children cbc911ffd21e
files tools/gfxconv.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Mon Jun 25 17:13:41 2018 +0300
+++ b/tools/gfxconv.c	Mon Jun 25 17:56:35 2018 +0300
@@ -1107,6 +1107,8 @@
     const DMC64ImageFormat *dstFmt, const DMC64ImageFormat *srcFmt)
 {
     DMC64Image *dst;
+    DMC64MemBlock *srcBlk = NULL, *dstBlk = NULL;
+    const char *blkname = NULL;
 
     if (pdst == NULL || dstFmt == NULL || src == NULL || srcFmt == NULL)
         return DMERR_NULLPTR;
@@ -1143,8 +1145,6 @@
     for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++)
     {
         const DMC64EncDecOp *op = fmtGetEncDecOp(dstFmt, i);
-        DMC64MemBlock *srcBlk = NULL, *dstBlk = NULL;
-        const char *blkname = NULL;
         size_t size;
 
         if (op->type == DO_LAST)
@@ -1350,6 +1350,7 @@
                         fmt->fmtid == DM_IMGFMT_ARAW ? "ARAW" : "RAW",
                         hdrFilename, prefix);
                 }
+
                 res = dmWriteIFFMasterRAWHeaderFile(
                     hdrFilename, filename, prefix, image, spec, fmt->fmtid);