summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
diff options
context:
space:
mode:
authorQiu Shumin <shumin.qiu@intel.com>2014-09-19 01:32:05 +0000
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-19 01:32:05 +0000
commit715096c2448412e54a95092942a397bd4d697524 (patch)
treea57e319c4c618389ca5609540955918561fdb6fa /ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
parentee1c2b77f48bf1c16f51b44c5df2be5b70ac8d33 (diff)
downloadedk2-715096c2448412e54a95092942a397bd4d697524.tar.gz
edk2-715096c2448412e54a95092942a397bd4d697524.tar.bz2
edk2-715096c2448412e54a95092942a397bd4d697524.zip
ShellPkg: Refine code style to avoid potential uninitialized local variable.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16146 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c')
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
index fcf5f657b8..772cbd27f1 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
@@ -275,9 +275,10 @@ ValidateAndMoveFiles(
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)) {