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:
@ -713,6 +713,10 @@ AsciiStrnCmp (
|
|||||||
IN UINTN Length
|
IN UINTN Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (Length == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// ASSERT both strings are less long than PcdMaximumAsciiStringLength
|
// ASSERT both strings are less long than PcdMaximumAsciiStringLength
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user