]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix Shell ASSERT when mv file with cwd is NULL.
authorQiu Shumin <shumin.qiu@intel.com>
Fri, 8 Apr 2016 07:41:06 +0000 (15:41 +0800)
committerQiu Shumin <shumin.qiu@intel.com>
Mon, 11 Apr 2016 01:33:18 +0000 (09:33 +0800)
commit64ee6ed72ad5c1e4b7c9a96f419c3592e93314ad
tree3612e15ab0331b98ef53c971bc7c17e5beac753c
parent800c02fbe2da64ca83540151fc75a431df25aae7
ShellPkg: Fix Shell ASSERT when mv file with cwd is NULL.

Shell will ASSERT when doing the following operation:
""
Shell> mv fs2:\file1 fs2:\file2
""
This patch add NULL pointer check to fix this issue.

Fixes: https://github.com/tianocore/edk2/issues/76
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c