comparison tools/lib64gfx.c @ 1600:e28e67358ff6

Fix some uninitialized variable warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 08:47:19 +0300
parents 501e31f11c29
children ed5ccf00b959
comparison
equal deleted inserted replaced
1599:9c3dd6f8dbda 1600:e28e67358ff6
610 // Perform decoding 610 // Perform decoding
611 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++) 611 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++)
612 { 612 {
613 const DMC64EncDecOp *op = fmtGetEncDecOp(fmt, i); 613 const DMC64EncDecOp *op = fmtGetEncDecOp(fmt, i);
614 const Uint8 *src; 614 const Uint8 *src;
615 DMC64MemBlock *blk; 615 DMC64MemBlock *blk = NULL;
616 char *blkname; 616 char *blkname = NULL;
617 size_t size; 617 size_t size;
618 618
619 // Check for last operator 619 // Check for last operator
620 if (op->type == DT_LAST) 620 if (op->type == DT_LAST)
621 break; 621 break;
771 // Perform encoding 771 // Perform encoding
772 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++) 772 for (int i = 0; i < D64_MAX_ENCDEC_OPS; i++)
773 { 773 {
774 const DMC64EncDecOp *op = fmtGetEncDecOp(fmt, i); 774 const DMC64EncDecOp *op = fmtGetEncDecOp(fmt, i);
775 size_t size, chksize; 775 size_t size, chksize;
776 const DMC64MemBlock *blk; 776 const DMC64MemBlock *blk = NULL;
777 char *blkname; 777 char *blkname = NULL;
778 778
779 // Check for last operator 779 // Check for last operator
780 if (op->type == DT_LAST) 780 if (op->type == DT_LAST)
781 break; 781 break;
782 782