diff options
author | tye <tye@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 11:42:18 +0000 |
---|---|---|
committer | tye <tye@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-12 11:42:18 +0000 |
commit | 95157291b0d5d1c4438a19a1f6695077ba580334 (patch) | |
tree | 633e2703ba910c23908a2a1fd9972ce9f9a0c9dc /MdeModulePkg/Library | |
parent | 49b3b3ab262382460c9c079ddf30ff7219f86609 (diff) | |
download | edk2-platforms-95157291b0d5d1c4438a19a1f6695077ba580334.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
|