Skip to content

Commit

Permalink
fix memset
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed May 22, 2019
1 parent ec9d884 commit 0afea25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/KSCrash/Recording/KSCrashReportFixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ static int onStringElement(const char* const name,
}
if(shouldSaveVersion(context, name))
{
memset(&(context->reportVersionComponents), 0,
sizeof(*context->reportVersionComponents) * REPORT_VERSION_COMPONENTS_COUNT);
memset(context->reportVersionComponents, 0, sizeof(context->reportVersionComponents));
int versionPartsIndex = 0;
char* mutableValue = strdup(value);
char* versionPart = strtok(mutableValue, ".");
Expand Down

0 comments on commit 0afea25

Please sign in to comment.