diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-03 05:09:40 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-03 05:09:40 +0000 |
| commit | c9acd48b30eddf152325a9c0091e46d49439ae12 (patch) | |
| tree | ed6b5f53b6d155549c3e666e7329520f09065845 /libpcsxcore | |
| parent | 4273fdfc90a1e1eedb1a425925a589b8e231ed64 (diff) | |
| download | pcsxr-c9acd48b30eddf152325a9c0091e46d49439ae12.tar.gz | |
Fixes for some problems found with Xcode's static analyzer. There are more, but I don't know how to approach them.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72824 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/cdrom.c | 4 | ||||
| -rw-r--r-- | libpcsxcore/socket.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 055a15a0..d1605804 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -220,7 +220,7 @@ extern SPUregisterCallback SPU_registerCallback; void adjustTransferIndex()
{
- unsigned int bufSize;
+ unsigned int bufSize = 0;
switch (cdr.Mode & (MODE_SIZE_2340|MODE_SIZE_2328)) {
case MODE_SIZE_2340: bufSize = 2340; break;
@@ -518,7 +518,7 @@ static void ReadTrack( u8 *time ) { static void CDXA_Attenuation( s16 *buf, int size, int stereo, int attenuate_type )
{
s16 *spsound;
- s32 lc,rc;
+ s32 lc = 0,rc;
int i;
spsound = buf;
diff --git a/libpcsxcore/socket.c b/libpcsxcore/socket.c index 4edf7f0c..450aefd9 100644 --- a/libpcsxcore/socket.c +++ b/libpcsxcore/socket.c @@ -190,7 +190,7 @@ int ReadSocket(char * buffer, int len) { }
int RawReadSocket(char * buffer, int len) {
- int r;
+ int r = 0;
int mlen = len < ptr ? len : ptr;
if (!client_socket)
|
