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:
tye 2010-01-12 11:42:18 +00:00
parent 49b3b3ab26
commit 95157291b0
1 changed files with 1 additions and 1 deletions

View File

@ -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