mirror of https://github.com/acidanthera/audk.git
initialize variable before error returns.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11447 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bf579d355d
commit
64d753f12d
|
@ -1110,6 +1110,7 @@ ParseHandleDatabaseForChildControllers(
|
|||
if (MatchingHandleCount == NULL) {
|
||||
return (EFI_INVALID_PARAMETER);
|
||||
}
|
||||
*MatchingHandleCount = 0;
|
||||
|
||||
Status = PARSE_HANDLE_DATABASE_UEFI_DRIVERS (
|
||||
ControllerHandle,
|
||||
|
@ -1129,7 +1130,6 @@ ParseHandleDatabaseForChildControllers(
|
|||
return (EFI_NOT_FOUND);
|
||||
}
|
||||
|
||||
*MatchingHandleCount = 0;
|
||||
for (DriverBindingHandleIndex = 0; DriverBindingHandleIndex < DriverBindingHandleCount; DriverBindingHandleIndex++) {
|
||||
Status = PARSE_HANDLE_DATABASE_MANAGED_CHILDREN (
|
||||
DriverBindingHandleBuffer[DriverBindingHandleIndex],
|
||||
|
|
Loading…
Reference in New Issue