diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-08-15 14:10:07 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-08-15 14:10:07 +0200 |
commit | b7c349d5e7c207bb7a2e7469c3e5522c9909c17f (patch) | |
tree | 72334fef6ee1ea35717aa8295589b0a01691dba9 /src/netaddress.cpp | |
parent | 1030fa718c59c29d3208af13e853457b7ac59d2e (diff) |
Do not shadow variables in networking code
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r-- | src/netaddress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp index 7000ce3f0a..db5cc3bc20 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -197,8 +197,8 @@ bool CNetAddr::IsValid() const return false; // unspecified IPv6 address (::/128) - unsigned char ipNone[16] = {}; - if (memcmp(ip, ipNone, 16) == 0) + unsigned char ipNone6[16] = {}; + if (memcmp(ip, ipNone6, 16) == 0) return false; // documentation IPv6 address |