summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellLevel2CommandsLib
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-30 22:25:46 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-30 22:25:46 +0000
commitf1518f69703e1086f346a6e9d8e5a59855954178 (patch)
tree4b4063efe03eb5383c15399998731dde6d212c14 /ShellPkg/Library/UefiShellLevel2CommandsLib
parent92d4b03fccc691698f83f6ee79b1da0417f98e7c (diff)
downloadedk2-platforms-f1518f69703e1086f346a6e9d8e5a59855954178.tar.xz
add fixes for code verification happyness.
signed-off-by: jcarsey reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11935 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
index d09d2ec7a7..8b30ac3122 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
@@ -255,6 +255,11 @@ ValidateAndCopyFiles(
ASSERT(DestDir != NULL);
//
+ // We already verified that this was present.
+ //
+ ASSERT(Cwd != NULL);
+
+ //
// If we are trying to copy multiple files... make sure we got a directory for the target...
//
if (EFI_ERROR(ShellIsDirectory(DestDir)) && FileList->Link.ForwardLink != FileList->Link.BackLink) {