From aabef446adb06c834484d272904305f531a24274 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 3 Jan 2012 07:57:46 -0200 Subject: [PATCH] PC-Lint warnings fixed: - Warning 603: Symbol 'address' (line x) not initialized; - Info 766: Header file 'limits' not used in module 'src\ip\ipv6header.cpp'. --- src/ip/ipv6header.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ip/ipv6header.cpp b/src/ip/ipv6header.cpp index 78ffaeb..f5ddc82 100644 --- a/src/ip/ipv6header.cpp +++ b/src/ip/ipv6header.cpp @@ -6,8 +6,6 @@ // http://www.boost.org/LICENSE_1_0.txt) #include "ip/ipv6header.h" -#include - #include #include #include @@ -126,6 +124,7 @@ address_v6 Ipv6Header::get_source_address() const address_v6::bytes_type address; // 16 bytes BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); + address.fill( 0 ); size_t header_byte_index = 8; BOOST_FOREACH( unsigned char &byte, address ) { @@ -150,6 +149,7 @@ address_v6 Ipv6Header::get_destination_address() const address_v6::bytes_type address; // 16 bytes BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); + address.fill( 0 ); size_t header_byte_index = 24; BOOST_FOREACH( unsigned char &byte, address ) { -- 1.7.1