summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-01 00:28:34 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-01 00:28:34 +0000
commit9c1ca96e425300c5087cceb9ca5261ecc58bc9ac (patch)
tree4c6ff07ea0ef5e3a45a63aa5dbafadaa1a4553a5
parent96a65fc85a3b7ebe6bd981db3c92f425cb6b9c46 (diff)
downloadedk2-9c1ca96e425300c5087cceb9ca5261ecc58bc9ac.zip
edk2-9c1ca96e425300c5087cceb9ca5261ecc58bc9ac.tar.gz
edk2-9c1ca96e425300c5087cceb9ca5261ecc58bc9ac.tar.bz2
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
-rw-r--r--MdeModulePkg/Library/DxeNetLib/NetBuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeNetLib/NetBuffer.c b/MdeModulePkg/Library/DxeNetLib/NetBuffer.c
index b56d62c..76b6510 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);