Clean the flag before use it to avoid use old error value.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14510 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Eric Dong 2013-07-29 02:45:26 +00:00 committed by ydong10
parent 70f89c0b5f
commit dcdaee884f
1 changed files with 1 additions and 0 deletions

View File

@ -1125,6 +1125,7 @@ GetVarStoreType (
GuidStr = NULL;
NameStr = NULL;
TempStr = NULL;
*IsEfiVarstore = FALSE;
Status = GetFormPackageData(DataBaseRecord, &HiiFormPackage, &PackageSize);
if (EFI_ERROR (Status)) {