Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/patcher/patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ static bool readFile(struct PatchedFile *file)
wchar_t *nameInFsCase;
const wchar_t *ptr;
HANDLE handle;
size_t sizeInBytes;
size_t sizeInBytes = 0;
void *data;
DWORD bytesRead;
char checksum[33];
Expand Down Expand Up @@ -760,7 +760,7 @@ static bool readFileFromBackup(mz_zip_archive *arch,
char *nameUtf8;
DWORD nameUtf8Len;
void *data;
size_t sizeInBytes;
size_t sizeInBytes = 0;
char checksum[33];

_static_assert(BUFLEN(checksum) == 33);
Expand Down Expand Up @@ -939,7 +939,7 @@ static bool createBackup(void)
void *data;
DWORD sizeInBytesLoWord;
DWORD sizeInBytesHiWord;
size_t sizeInBytes;
size_t sizeInBytes = 0;
DWORD bytesRead;
struct PatchedFile *file;
mz_zip_archive arch;
Expand Down