mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2025-11-02 14:56:41 +00:00
In AsciiStrncmp(), if length=0, should return 0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@840 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bc724e5885
commit
03e772c322
@ -713,6 +713,10 @@ AsciiStrnCmp (
|
||||
IN UINTN Length
|
||||
)
|
||||
{
|
||||
if (Length == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//
|
||||
// ASSERT both strings are less long than PcdMaximumAsciiStringLength
|
||||
//
|
||||
|
||||
Loading…
Reference in New Issue
Block a user