audk/ShellPkg/Library/UefiShellLevel1CommandsLib
Ruiyu Ni 7162fdb037 ShellPkg/for: Fix potential null pointer deference
When "FOR %a %a IN A B C" is executed,
CurrentScriptFile->CurrentCommand->Data is NULL.
But the code assumes it's not NULL and tries to
deference it.

The patch fixes this issue.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-02-06 17:30:24 +08:00
..
Exit.c
For.c
Goto.c
If.c
Shift.c
Stall.c
UefiShellLevel1CommandsLib.c
UefiShellLevel1CommandsLib.h
UefiShellLevel1CommandsLib.inf
UefiShellLevel1CommandsLib.uni