]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix the warning: Line 389, the Index of mMonthName may be -1.
authortye <tye@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Jan 2010 11:42:18 +0000 (11:42 +0000)
committertye <tye@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 12 Jan 2010 11:42:18 +0000 (11:42 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9714 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/DxeNetLib/DxeNetLib.c

index 485c09f9634eb4b15d22553718e1b8aa586e2094..5ff84a9fe16091c8ab8e97a53cd6c1e26c084742 100644 (file)
@@ -375,7 +375,7 @@ SyslogBuildPacket (
   //\r
   Pri = ((NET_SYSLOG_FACILITY & 31) << 3) | (Level & 7);\r
   gRT->GetTime (&Time, NULL);\r
-  ASSERT (Time.Month <= 12);\r
+  ASSERT ((Time.Month <= 12) && (Time.Month >= 1));\r
 \r
   //\r
   // Use %a to format the ASCII strings, %s to format UNICODE strings\r