summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/Shell.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2013-12-24 07:25:31 +0000
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>2013-12-24 07:25:31 +0000
commit6fa0da7d52815979be31b8252aae839883dc7b0c (patch)
tree0340293b2cd69452e1636e9279416722910331a4 /ShellPkg/Application/Shell/Shell.c
parentbdebd2cecf015a5feb11e99269731cac606167e8 (diff)
downloadedk2-platforms-6fa0da7d52815979be31b8252aae839883dc7b0c.tar.xz
Add default way for switch in function 'RunCommandOrFile' of 'Shell.c'.
Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Shumin Qiu <shumin.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15018 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application/Shell/Shell.c')
-rw-r--r--ShellPkg/Application/Shell/Shell.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c
index 7e4c891d31..ef821a5c5d 100644
--- a/ShellPkg/Application/Shell/Shell.c
+++ b/ShellPkg/Application/Shell/Shell.c
@@ -2072,8 +2072,18 @@ RunCommandOrFile(
//
SetLastError(StatusCode);
break;
+ default:
+ //
+ // Do nothing.
+ //
+ break;
}
break;
+ default:
+ //
+ // Do nothing.
+ //
+ break;
}
SHELL_FREE_NON_NULL(CommandWithPath);