Fixed an uninitialized variable in ZydisChangeCase

This commit is contained in:
Duncan Ogilvie 2017-10-14 13:45:21 +02:00
parent 90e4626d11
commit 1564120c22
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ void ZydisChangeCase(char* buffer, size_t bufferLen, ZydisLetterCase letterCase)
return;
}
for (size_t i; i < bufferLen; ++i)
for (size_t i = 0; i < bufferLen; ++i)
{
char* c = buffer + i;
if (*c >= rewriteRangeStart && *c <= rewriteRangeEnd)