1
0
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:
dmiller
2017-08-06 17:29:57 +00:00
parent cc358f1ede
commit 3537306f64

View File

@@ -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;
}
}