]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Initialize the variable before use it.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 21 Aug 2012 08:25:37 +0000 (08:25 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 21 Aug 2012 08:25:37 +0000 (08:25 +0000)
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13656 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/HiiDatabaseDxe/String.c

index a76e5b64c93199f3144ac0615f6a54da5220df0d..c55305886f8fef38aca7afd2183dfeeb97a5f98c 100644 (file)
@@ -2,7 +2,7 @@
 Implementation for EFI_HII_STRING_PROTOCOL.\r
 \r
 \r
-Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -899,6 +899,7 @@ SetStringWorker (
   EFI_STRING_ID                        StartStringId;\r
 \r
   StartStringId = 0;\r
+  StringSize    = 0;\r
   ASSERT (Private != NULL && StringPackage != NULL && String != NULL);\r
   ASSERT (Private->Signature == HII_DATABASE_PRIVATE_DATA_SIGNATURE);\r
   //\r