Updated purge function
This commit is contained in:
parent
9388ee3011
commit
f9f89b5843
@ -385,7 +385,7 @@ int mbsedb_PackFDB(struct _fdbarea *fdb_area)
|
|||||||
fseek(fdb_area->fp, fdbhdr.hdrsize, SEEK_SET);
|
fseek(fdb_area->fp, fdbhdr.hdrsize, SEEK_SET);
|
||||||
|
|
||||||
while (fread(&fdb, fdbhdr.recsize, 1, fdb_area->fp) == 1) {
|
while (fread(&fdb, fdbhdr.recsize, 1, fdb_area->fp) == 1) {
|
||||||
if (!fdb.Deleted)
|
if ((!fdb.Deleted) && (!fdb.Double) && (strcmp(fdb.Name, "") != 0))
|
||||||
fwrite(&fdb, fdbhdr.recsize, 1, fp);
|
fwrite(&fdb, fdbhdr.recsize, 1, fp);
|
||||||
else
|
else
|
||||||
count++;
|
count++;
|
||||||
|
Reference in New Issue
Block a user