Explicitly initialise to remove compile warning

IP temporary variables shouldn't be used before initialisation due to
the parsing rules, but explicitly assigning them dummy values makes GCC
stop complaining.
This commit is contained in:
Danny Robson 2012-04-11 15:54:52 +10:00
parent 134ab02ba6
commit 57bc1af1ae

View File

@ -97,8 +97,9 @@ ipv4::ip::operator == (const ipv4::ip &rhs) const {
ipv4::ip::ip (const std::string &data) {
bool __success = true;
uint8_t __octets[4];
const char *octetstart, *octetend;
uint8_t __octets[4] = { 0, 0, 0, 0 };
const char *octetstart = nullptr,
*octetend = nullptr;
uint8_t __octet;
int cs = 0;