mirror of https://github.com/acidanthera/audk.git
Fix the warning: Line 389, the Index of mMonthName may be -1.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9714 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
49b3b3ab26
commit
95157291b0
|
@ -375,7 +375,7 @@ SyslogBuildPacket (
|
|||
//
|
||||
Pri = ((NET_SYSLOG_FACILITY & 31) << 3) | (Level & 7);
|
||||
gRT->GetTime (&Time, NULL);
|
||||
ASSERT (Time.Month <= 12);
|
||||
ASSERT ((Time.Month <= 12) && (Time.Month >= 1));
|
||||
|
||||
//
|
||||
// Use %a to format the ASCII strings, %s to format UNICODE strings
|
||||
|
|
Loading…
Reference in New Issue