Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ShellPkg/HttpDynamicCommand: Fix possible uninitialized use
`Status` can be used uninitialized: /* Evaluates to FALSE */ if (ShellGetExecutionBreakFlag ()) { Status = EFI_ABORTED; break; } /* Evaluates to FALSE */ if (!Context->ContentDownloaded && !Context->ResponseToken.Event) { Status = ...; ASSERT_EFI_ERROR (Status); } else { ResponseMessage.Data.Response = NULL; } /* UNINITIALIZED USE */ if (EFI_ERROR (Status)) { break; } Cc: Ray Ni <[email protected]> Cc: Zhichao Gao <[email protected]> Signed-off-by: Sergei Dmitrouk <[email protected]> Reviewed-by: Liming Gao <[email protected]>
- Loading branch information