mirror of
https://github.com/nmap/nmap.git
synced 2026-01-29 17:49:08 +00:00
Only one memset is required
This commit is contained in:
@@ -399,8 +399,8 @@ bool NetBlock::is_resolved_address(const struct sockaddr_storage *ss) const {
|
||||
NetBlockIPv4Ranges::NetBlockIPv4Ranges() {
|
||||
unsigned int i;
|
||||
|
||||
memset(this->octets, 0, sizeof(this->octets));
|
||||
for (i = 0; i < 4; i++) {
|
||||
memset(this->octets, 0, sizeof(this->octets));
|
||||
this->counter[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user