X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FApplication%2FShell%2FShell.c;h=ecd48cdd78719149670ff1f464e955e9d1963b52;hp=17943531dbb08b13aa00d5a2e13a85c8d0a04776;hb=33c031ee2092282a069ce07d30202082ceaf61fe;hpb=6b825919f1c16b07b5cac7fc5e298fbeb530d888 diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 17943531db..ecd48cdd78 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -731,7 +731,7 @@ ProcessCommandLine( ShellInfoObject.ShellInitSettings.Delay = 0; } else if (ShellInfoObject.ShellInitSettings.BitUnion.Bits.Delay) { TempConst = ShellCommandLineGetValue(Package, L"-delay"); - if (*TempConst == L':') { + if (TempConst != NULL && *TempConst == L':') { TempConst++; } if (TempConst != NULL && !EFI_ERROR(ShellConvertStringToUint64(TempConst, &Intermediate, FALSE, FALSE))) {