diff --git a/ShellPkg/Application/Shell/ShellEnvVar.c b/ShellPkg/Application/Shell/ShellEnvVar.c index 810f843149..d674f14c24 100644 --- a/ShellPkg/Application/Shell/ShellEnvVar.c +++ b/ShellPkg/Application/Shell/ShellEnvVar.c @@ -154,6 +154,7 @@ GetEnvironmentVariableList( return (Status); } } else { + Status = EFI_SUCCESS; MaxVarSize = 16384; }