mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix some unitinialized values.
This commit is contained in:
parent
008052e6d6
commit
c6c821a0f7
2 changed files with 4 additions and 4 deletions
|
@ -152,7 +152,7 @@ bool SymbolMap::LoadSymbolMap(const char *filename)
|
|||
|
||||
while (!feof(f))
|
||||
{
|
||||
char line[512],temp[256];
|
||||
char line[512], temp[256] = {0};
|
||||
char *p = fgets(line,512,f);
|
||||
if(p == NULL)
|
||||
break;
|
||||
|
@ -233,7 +233,7 @@ bool SymbolMap::LoadNocashSym(const char *filename)
|
|||
|
||||
while (!feof(f))
|
||||
{
|
||||
char line[256],value[256];
|
||||
char line[256], value[256] = {0};
|
||||
char *p = fgets(line,256,f);
|
||||
if(p == NULL)
|
||||
break;
|
||||
|
|
|
@ -243,7 +243,7 @@ bool DirectoryFileHandle::Open(std::string& basePath, std::string& fileName, Fil
|
|||
|
||||
size_t DirectoryFileHandle::Read(u8* pointer, s64 size)
|
||||
{
|
||||
size_t bytesRead;
|
||||
size_t bytesRead = 0;
|
||||
#ifdef _WIN32
|
||||
::ReadFile(hFile, (LPVOID)pointer, (DWORD)size, (LPDWORD)&bytesRead, 0);
|
||||
#else
|
||||
|
@ -254,7 +254,7 @@ size_t DirectoryFileHandle::Read(u8* pointer, s64 size)
|
|||
|
||||
size_t DirectoryFileHandle::Write(const u8* pointer, s64 size)
|
||||
{
|
||||
size_t bytesWritten;
|
||||
size_t bytesWritten = 0;
|
||||
#ifdef _WIN32
|
||||
::WriteFile(hFile, (LPVOID)pointer, (DWORD)size, (LPDWORD)&bytesWritten, 0);
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue