From 1fed57ab5d6961c43866b98c6ef56e1740373b1c Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Mon, 16 May 2016 11:44:45 +0800 Subject: MdeModulePkg: Refine the code for DxeHttpLib Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu Reviewed-by: Liming Gao --- MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c index 46f035ab39..727cc428f4 100644 --- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c @@ -1673,11 +1673,13 @@ HttpGenRequestMessage ( ASSERT (Message != NULL); - *RequestMsg = NULL; - MsgSize = 0; - Success = FALSE; - HttpHdr = NULL; - AppendList = NULL; + *RequestMsg = NULL; + Status = EFI_SUCCESS; + HttpHdrSize = 0; + MsgSize = 0; + Success = FALSE; + HttpHdr = NULL; + AppendList = NULL; HttpUtilitiesProtocol = NULL; // -- cgit v1.2.3