Build fix for g++ 4.0.4 ('... may be used uninitialized in this function')

This commit is contained in:
Pavel Boyko
2009-09-16 13:28:06 +04:00
parent 865279bd09
commit 11b6f74f26

View File

@@ -241,7 +241,7 @@ PeerManagementProtocol::ReceivePeerLinkFrame (uint32_t interface, Mac48Address p
Ptr<PeerLink> peerLink = FindPeerLink (interface, peerAddress);
if (peerManagementElement.SubtypeIsOpen ())
{
PmpReasonCode reasonCode;
PmpReasonCode reasonCode (REASON11S_RESERVED);
bool reject = !(ShouldAcceptOpen (interface, peerAddress, reasonCode));
if (peerLink == 0)
{