diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-29 19:28:20 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-29 19:28:20 +0000 |
commit | 64d753f12d74b683b52862b7a4403fa2cd56a171 (patch) | |
tree | c87ed65aea2c414583b0c6a581747b39e7d55f5e | |
parent | bf579d355d8a4cf0020437a8c7ff569792405987 (diff) | |
download | edk2-platforms-64d753f12d74b683b52862b7a4403fa2cd56a171.tar.xz |
initialize variable before error returns.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11447 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index 012ea39a9a..eb1dbbd3fd 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -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],
|