diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-07-12 23:56:04 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-07-12 23:56:04 +0000 |
| commit | 533e6a2bfdc63de3e14f13300ee064564cd9375d (patch) | |
| tree | 2e622ab8f68c65b99b076c86d4871c685f0c044a /libpcsxcore | |
| parent | 247d3802e22fe82df7e65deaa71fb20093b69ccc (diff) | |
| download | pcsxr-533e6a2bfdc63de3e14f13300ee064564cd9375d.tar.gz | |
Patch 16583 (MaddTheSane);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90937 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/cdriso.c | 4 | ||||
| -rwxr-xr-x | libpcsxcore/debug.c | 4 | ||||
| -rwxr-xr-x | libpcsxcore/ppf.c | 2 | ||||
| -rwxr-xr-x | libpcsxcore/psxbios.c | 4 |
4 files changed, 7 insertions, 7 deletions
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 diff --git a/libpcsxcore/debug.c b/libpcsxcore/debug.c index 2a9bd5a4..b5497d11 100755 --- a/libpcsxcore/debug.c +++ b/libpcsxcore/debug.c @@ -422,8 +422,8 @@ void ProcessDebug() { static void ProcessCommands() { int code, i, dumping; FILE *sfile; - char cmd[257], *arguments, *p, reply[10240], *save, *dump; - u32 reg, value, size, address; + char cmd[257], *arguments, *p, reply[10240], *save, *dump = NULL; + u32 reg, value, size = 0, address; breakpoint_t *bp; if (!HasClient()) diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c index ab93bbe7..3d2f9f30 100755 --- a/libpcsxcore/ppf.c +++ b/libpcsxcore/ppf.c @@ -182,7 +182,7 @@ void BuildPPFCache() { FILE *ppffile; char buffer[12]; char method, undo = 0, blockcheck = 0; - int dizlen, dizyn; + int dizlen = 0, dizyn; unsigned char ppfmem[512]; char szPPF[MAXPATHLEN]; int count, seekpos, pos; diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 79fe9bb9..5947d407 100755 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -799,8 +799,8 @@ void psxBios_qsort() { // 0x31 } void psxBios_malloc() { // 0x33 - unsigned int *chunk, *newchunk; - unsigned int dsize, csize, cstat; + unsigned int *chunk, *newchunk = NULL; + unsigned int dsize = 0, csize, cstat; int colflag; #ifdef PSXBIOS_LOG PSXBIOS_LOG("psxBios_%s\n", biosA0n[0x33]); |
