Skip to content

Commit

Permalink
Only one memset is required
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Aug 6, 2017
1 parent cc358f1 commit 3537306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TargetGroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3537306

Please sign in to comment.