Added warning again

This commit is contained in:
Michiel Broek
2003-12-07 13:18:09 +00:00
parent bbacbd595d
commit 14232958a4
3 changed files with 44 additions and 2 deletions

View File

@@ -57,7 +57,9 @@ void InitDupes()
{
int i;
Syslog('N', "Init Dupes");
Syslog('n', "Init Dupes");
memset(dupes, 0, sizeof(dupes));
for (i = 0; i < 3; i++) {
dupes[i].crcs= NULL;
dupes[i].loaded = FALSE;
@@ -104,6 +106,7 @@ int CheckDupe(unsigned long crc, int idx, int max)
else
dupes[idx].peak = max + 5000;
dupes[idx].crcs = (unsigned long *)malloc(dupes[idx].peak * sizeof(unsigned long));
memset(dupes[idx].crcs, 0, dupes[idx].peak * sizeof(unsigned long));
/*
* Load dupe records