Imap->msgids = (long*)cdbfr->ptr;
Imap->num_msgs = cdbfr->len / sizeof(long);
Imap->num_alloc = cdbfr->len / sizeof(long);
- cdbfr->ptr = NULL;
+ cdbfr->ptr = NULL; // (this needs attention if we move to LMDB)
cdbfr->len = 0;
cdb_free(cdbfr);
}
cdbfr = cdb_fetch(CDB_MSGLISTS, &CC->room.QRnumber, sizeof(long));
if (cdbfr != NULL) {
msglist = (long*)cdbfr->ptr;
- cdbfr->ptr = NULL;
+ cdbfr->ptr = NULL; // (this needs attention if we move to LMDB)
num_msgs = cdbfr->len / sizeof(long);
cdbfr->len = 0;
cdb_free(cdbfr);