summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2014-07-29 02:00:55 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-29 02:00:55 +0000
commit0d807dae4adf222ee0c1b3abe504c9a271a46062 (patch)
treebd7471e493220502dbfe8eecda17a1bd0d1ab6ad /ShellPkg
parent3f35b140e14cf1e95ec9621adedaa29890ac4fc9 (diff)
downloadedk2-platforms-0d807dae4adf222ee0c1b3abe504c9a271a46062.tar.xz
Update code to support VS2013 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.c3
-rw-r--r--ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c3
-rw-r--r--ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c4
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c3
-rw-r--r--ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c3
5 files changed, 12 insertions, 4 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c
index 3d01283b60..403bed4516 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.c
+++ b/ShellPkg/Application/Shell/ShellProtocol.c
@@ -1318,6 +1318,8 @@ EfiShellDeleteFileByName(
SHELL_FILE_HANDLE FileHandle;
EFI_STATUS Status;
+ FileHandle = NULL;
+
//
// get a handle to the file
//
@@ -1960,6 +1962,7 @@ EfiShellFindFilesInDir(
UINTN Size;
CHAR16 *TempSpot;
+ BasePath = NULL;
Status = FileHandleGetFileName(FileDirHandle, &BasePath);
if (EFI_ERROR(Status)) {
return (Status);
diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
index a1564d4f5a..f972c37839 100644
--- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
+++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
@@ -1,7 +1,7 @@
/** @file
Implements editor interface functions.
- Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>
+ Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -489,6 +489,7 @@ MainCommandCutLine (
// IF cursor is not on valid line, an Status String will be prompted :
// "Nothing to Cut".
//
+ Line = NULL;
Status = FileBufferCutLine (&Line);
if (Status == EFI_NOT_FOUND) {
return EFI_SUCCESS;
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
index 1bb3191f41..29801949d3 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
@@ -1,7 +1,7 @@
/** @file
Main file for Dh shell Driver1 function.
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -283,6 +283,8 @@ DisplayDriverModelHandle (
UINTN ChildIndex;
BOOLEAN Image;
+ DriverName = NULL;
+
//
// See if Handle is a device handle and display its details.
//
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
index c1e01426f8..53db2222f2 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
@@ -1,7 +1,7 @@
/** @file
Main file for attrib shell level 2 function.
- Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -39,6 +39,7 @@ IsDirectoryEmpty (
RetVal = TRUE;
NoFile = FALSE;
+ FileInfo = NULL;
for (FileHandleFindFirstFile(FileHandle, &FileInfo)
; !NoFile
diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c
index bedd591c0d..ea414cbd6e 100644
--- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c
+++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c
@@ -1,7 +1,7 @@
/** @file
Main file for Pause shell level 3 function.
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved. <BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -40,6 +40,7 @@ ShellCommandRunPause (
ProblemParam = NULL;
ShellStatus = SHELL_SUCCESS;
+ Resp = NULL;
//
// initialize the shell lib (we must be in non-auto-init...)