analyze: debugging leftover removed

My stupid mistake to leave statement hanging around while I where
wondering where the uninitialized memory came from.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-07-08 18:05:20 +02:00
parent 26db4eafdc
commit d29fd809c9

View file

@ -96,7 +96,7 @@ int do_counting(void)
/* Walk through ranges */
for (i = j = k = l = 0; i < num_ranges; i++) {
/* Count IPs in use */
for (j = j; leases[j] < range_p->last_ip
for (; leases[j] < range_p->last_ip
&& (unsigned long) j < num_leases; j++) {
if (leases[j] < range_p->first_ip) {
continue;
@ -109,7 +109,7 @@ int do_counting(void)
}
/* Count touched IPs */
for (k = k; touches[k] < range_p->last_ip
for (; touches[k] < range_p->last_ip
&& (unsigned long) k < num_touches; k++) {
if (touches[k] < range_p->first_ip) {
continue;