summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellLevel1CommandsLib
diff options
context:
space:
mode:
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel1CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellLevel1CommandsLib/If.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
index 3376329622..3a154a2625 100644
--- a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
+++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
@@ -62,7 +62,7 @@ IsNextFragment (
//
*Statement+=StrLen(Fragment);
while (*Statement[0] == L' ') {
- *Statement++;
+ Statement++;
}
FreePool(Tester);
return (TRUE);
@@ -302,6 +302,9 @@ TestOperation (
}
return (FALSE);
break;
+ default:
+ ASSERT(FALSE);
+ return (FALSE);
}
ASSERT(FALSE);
return (FALSE);