mirror of https://github.com/acidanthera/audk.git
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