From 95157291b0d5d1c4438a19a1f6695077ba580334 Mon Sep 17 00:00:00 2001 From: tye Date: Tue, 12 Jan 2010 11:42:18 +0000 Subject: 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 --- MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c index 485c09f963..5ff84a9fe1 100644 --- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c +++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c @@ -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 -- cgit v1.2.3