Index: Library/UefiShellLevel2CommandsLib/Cp.c
===================================================================
--- Library/UefiShellLevel2CommandsLib/Cp.c	(revision 16126)
+++ Library/UefiShellLevel2CommandsLib/Cp.c	(working copy)
@@ -309,10 +309,11 @@
     Response = *Resp;
   }
 
-  DestPath    = NULL;
-  ShellStatus = SHELL_SUCCESS;
-  PathSize    = 0;
-  Cwd         = ShellGetCurrentDir(NULL);
+  DestPath         = NULL;
+  ShellStatus      = SHELL_SUCCESS;
+  PathSize         = 0;
+  Cwd              = ShellGetCurrentDir(NULL);
+  CleanFilePathStr = NULL;
 
   ASSERT(FileList != NULL);
   ASSERT(DestDir  != NULL);
Index: Library/UefiShellLevel2CommandsLib/Mv.c
===================================================================
--- Library/UefiShellLevel2CommandsLib/Mv.c	(revision 16126)
+++ Library/UefiShellLevel2CommandsLib/Mv.c	(working copy)
@@ -275,9 +275,10 @@
   ASSERT(FileList != NULL);
   ASSERT(DestDir  != NULL);
 
-  DestPath = NULL;
-  Cwd      = ShellGetCurrentDir(NULL);
-  Response = *Resp;
+  DestPath         = NULL;
+  Cwd              = ShellGetCurrentDir(NULL);
+  Response         = *Resp;
+  CleanFilePathStr = NULL;
 
   Status = ShellLevel2StripQuotes (DestDir, &CleanFilePathStr);
   if (EFI_ERROR (Status)) {
Index: Library/UefiShellLib/UefiShellLib.c
===================================================================
--- Library/UefiShellLib/UefiShellLib.c	(revision 16126)
+++ Library/UefiShellLib/UefiShellLib.c	(working copy)
@@ -1502,6 +1502,8 @@
   ASSERT(Arg      != NULL);
   ASSERT(ListHead != NULL);
 
+  CleanFilePathStr = NULL;
+
   Status = InternalShellStripQuotes (Arg, &CleanFilePathStr);
   if (EFI_ERROR (Status)) {
     return Status;
