From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 16225803D2 for ; Mon, 13 Mar 2017 18:39:30 -0700 (PDT) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP; 13 Mar 2017 18:39:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,161,1486454400"; d="scan'208";a="76275065" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by fmsmga006.fm.intel.com with ESMTP; 13 Mar 2017 18:39:28 -0700 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Ruiyu Ni , Jaben Carsey Date: Tue, 14 Mar 2017 09:39:14 +0800 Message-Id: <1489455554-94000-2-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1489455554-94000-1-git-send-email-dandan.bi@intel.com> References: <1489455554-94000-1-git-send-email-dandan.bi@intel.com> Subject: [patch] ShellPkg/UefiShellBcfgCommandLib: Fix VS2012 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 01:39:30 -0000 Cc: Ruiyu Ni Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi --- ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c index 1538bc6..1122c89 100644 --- a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c +++ b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c @@ -400,10 +400,11 @@ BcfgMod ( EFI_BOOT_MANAGER_LOAD_OPTION LoadOption; ShellStatus = SHELL_SUCCESS; FileList = NULL; DevicePath = NULL; + DevicePathBuffer = NULL; ZeroMem (&LoadOption, sizeof(EFI_BOOT_MANAGER_LOAD_OPTION)); if ( (BcfgOperation->Type == BcfgTypeMod && BcfgOperation->Description == NULL) || (BcfgOperation->Type == BcfgTypeModf && BcfgOperation->FileName == NULL) || -- 1.9.5.msysgit.1