Skip to content

Commit

Permalink
Fixing uninitialized varaibels
Browse files Browse the repository at this point in the history
  • Loading branch information
kuqin12 committed Jan 12, 2024
1 parent ca8ab99 commit 9c3df4e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ AdvancedLoggerAccessLibGetNextFormattedLine (
// GetNextLine.

// In case this is a restart of the same Message, initialize the time stamp and prefix.
PhaseStringLen = 0;
if (LineEntry->BlockEntry.Message != NULL) {
FormatTimeStamp (TimeStampString, sizeof (TimeStampString), LineEntry->BlockEntry.TimeStamp);
CopyMem (LineBuffer, TimeStampString, sizeof (TimeStampString) - sizeof (CHAR8));
Expand Down

0 comments on commit 9c3df4e

Please sign in to comment.