mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
added explicit variable initialization to make some compilers happy
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@400 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -253,7 +253,6 @@ typedef enum {
|
||||
|
||||
Name::Name(InputBuffer& buffer, bool downcase)
|
||||
{
|
||||
unsigned int new_current;
|
||||
std::vector<unsigned char> offsets;
|
||||
offsets.reserve(Name::MAX_LABELS);
|
||||
|
||||
@@ -275,6 +274,11 @@ Name::Name(InputBuffer& buffer, bool downcase)
|
||||
unsigned int pos_begin = current;
|
||||
unsigned int biggest_pointer = current;
|
||||
|
||||
// Make the compiler happy; this is not required.
|
||||
// XXX: bad style in that we initialize it with a dummy value and define
|
||||
// it far from where it's used. But alternatives seemed even worse.
|
||||
unsigned int new_current = 0;
|
||||
|
||||
//
|
||||
// Note: The following code is not optimized for speed, but
|
||||
// rather for correctness. Speed will be addressed in the future.
|
||||
|
Reference in New Issue
Block a user