mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Don't reuse i as counting index where we need it as query ID
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -676,9 +676,10 @@ void process_pihole_log(int file)
|
||||
// Reallocate more space for forwarddata
|
||||
overTime[timeidx].forwarddata = realloc(overTime[timeidx].forwarddata, (forwardID+1)*sizeof(*overTime[timeidx].forwarddata));
|
||||
// Initialize new data fields with zeroes
|
||||
for(i = overTime[timeidx].forwardnum; i <= forwardID; i++)
|
||||
int j;
|
||||
for(j = overTime[timeidx].forwardnum; j <= forwardID; j++)
|
||||
{
|
||||
overTime[timeidx].forwarddata[i] = 0;
|
||||
overTime[timeidx].forwarddata[j] = 0;
|
||||
memory.forwarddata++;
|
||||
}
|
||||
// Update counter
|
||||
|
||||
Reference in New Issue
Block a user