mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Only one memset is required
This commit is contained in:
parent
cc358f1ede
commit
3537306f64
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue