summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorJaben Carsey <Jaben.carsey@intel.com>2013-08-23 15:21:16 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2013-08-23 15:21:16 +0000
commit9f56625f2a904701f460c88a7dbfaf17c4c83a22 (patch)
treef7f2cbfd967b912fd27b907e4ed3b593f6e1da84 /ShellPkg
parentce1d1c9a5fb422f41e240d9b13a6c14c9cffa468 (diff)
downloadedk2-9f56625f2a904701f460c88a7dbfaf17c4c83a22.zip
edk2-9f56625f2a904701f460c88a7dbfaf17c4c83a22.tar.gz
edk2-9f56625f2a904701f460c88a7dbfaf17c4c83a22.tar.bz2
ShellPkg: Fix potentially uninitialized variable compiler warning
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14598 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
index a8c1f66..087befd 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
@@ -542,6 +542,7 @@ ProcessValidateAndCopyFiles(
List = NULL;
FullName = NULL;
+ FileInfo = NULL;
ShellOpenFileMetaArg((CHAR16*)DestDir, EFI_FILE_MODE_READ, &List);
if (List != NULL && List->Link.ForwardLink != List->Link.BackLink) {