From 9c1ca96e425300c5087cceb9ca5261ecc58bc9ac Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 1 Mar 2010 00:28:34 +0000 Subject: MdeModulePkg DxeNetLib: Fix compiler warning This compiler warning was triggered by setting MDEPKG_NDEBUG. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10126 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxeNetLib/NetBuffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Library') diff --git a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c index b56d62c8fb..76b6510659 100644 --- a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c +++ b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c @@ -1050,6 +1050,8 @@ NetbufAllocSpace ( UINT32 Index; UINT8 *SavedTail; + Index = 0; + NET_CHECK_SIGNATURE (Nbuf, NET_BUF_SIGNATURE); NET_CHECK_SIGNATURE (Nbuf->Vector, NET_VECTOR_SIGNATURE); -- cgit v1.2.3