]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update code to support VS2013 tool chain.
authorEric Dong <eric.dong@intel.com>
Tue, 29 Jul 2014 02:00:55 +0000 (02:00 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 29 Jul 2014 02:00:55 +0000 (02:00 +0000)
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

ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c

index 3d01283b60a1326495b47a0021dda177e8efe9df..403bed451681ab9125be1db6798ebe68fbd05c55 100644 (file)
@@ -1318,6 +1318,8 @@ EfiShellDeleteFileByName(
   SHELL_FILE_HANDLE FileHandle;\r
   EFI_STATUS        Status;\r
 \r
+  FileHandle = NULL;\r
+\r
   //\r
   // get a handle to the file\r
   //\r
@@ -1960,6 +1962,7 @@ EfiShellFindFilesInDir(
   UINTN                     Size;\r
   CHAR16                    *TempSpot;\r
 \r
+  BasePath = NULL;\r
   Status = FileHandleGetFileName(FileDirHandle, &BasePath);\r
   if (EFI_ERROR(Status)) {\r
     return (Status);\r
index a1564d4f5a146530dde5b080e563976e71044c45..f972c378397ffe14a5ce238fcfb02043ffe5d3e8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements editor interface functions.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2014, 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
@@ -489,6 +489,7 @@ MainCommandCutLine (
   //     IF cursor is not on valid line, an Status String will be prompted :\r
   //        "Nothing to Cut".\r
   //\r
+  Line = NULL;\r
   Status = FileBufferCutLine (&Line);\r
   if (Status == EFI_NOT_FOUND) {\r
     return EFI_SUCCESS;\r
index 1bb3191f4153e6a994ffca07fd4efdabc507b4ab..29801949d34ead5ced4270f46c31789106bf2cf8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for Dh shell Driver1 function.\r
 \r
-  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2014, 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
@@ -283,6 +283,8 @@ DisplayDriverModelHandle (
   UINTN                       ChildIndex;\r
   BOOLEAN                     Image;\r
 \r
+  DriverName = NULL;\r
+\r
   //\r
   // See if Handle is a device handle and display its details.\r
   //\r
index c1e01426f8076f49ff38bb218a3f664a451d1baa..53db2222f2601d3a1396609421488850ac5aa776 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for attrib shell level 2 function.\r
 \r
-  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2014, 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
@@ -39,6 +39,7 @@ IsDirectoryEmpty (
 \r
   RetVal = TRUE;\r
   NoFile = FALSE;\r
+  FileInfo = NULL;\r
 \r
   for (FileHandleFindFirstFile(FileHandle, &FileInfo)\r
     ;  !NoFile\r
index bedd591c0de9ecd68826b9e2e7a7d0f3eaa43a3b..ea414cbd6e6a48b09257a4c8a5ff45764d67cc31 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for Pause shell level 3 function.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2014, 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
@@ -40,6 +40,7 @@ ShellCommandRunPause (
 \r
   ProblemParam        = NULL;\r
   ShellStatus         = SHELL_SUCCESS;\r
+  Resp                = NULL;\r
 \r
   //\r
   // initialize the shell lib (we must be in non-auto-init...)\r