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:
jcarsey 2011-03-29 19:28:20 +00:00
parent bf579d355d
commit 64d753f12d
1 changed files with 1 additions and 1 deletions

View File

@ -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],