From 533e6a2bfdc63de3e14f13300ee064564cd9375d Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Sat, 12 Jul 2014 23:56:04 +0000 Subject: Patch 16583 (MaddTheSane); git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90937 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/cdriso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpcsxcore/cdriso.c') diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index a509906a..815bc82e 100755 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1264,9 +1264,9 @@ static int cdread_2048(FILE *f, unsigned int base, void *dest, int sector) /* Adapted from ecm.c:unecmify() (C) Neill Corlett */ //TODO: move this func to ecm.h static int cdread_ecm_decode(FILE *f, unsigned int base, void *dest, int sector) { - u32 output_edc=0, b, writebytecount=0, num; + u32 output_edc=0, b=0, writebytecount=0, num; s32 sectorcount=0; - s8 type; // mode type 0 (META) or 1, 2 or 3 for CDROM type + s8 type = 0; // mode type 0 (META) or 1, 2 or 3 for CDROM type u8 sector_buffer[CD_FRAMESIZE_RAW]; boolean processsectors = (boolean)decoded_ecm_sectors; // this flag tells if to decode all sectors or just skip to wanted sector ECMFILELUT* pos = &(ecm_savetable[0]); // points always to beginning of ECM DATA -- cgit v1.2.3