Browse Source

* simdb_record_used() fix

master
Alex 'AdUser' Z 8 years ago
parent
commit
ec3514ca87
  1. 2
      src/database.c

2
src/database.c

@ -240,7 +240,7 @@ simdb_record_used(simdb_t *db, int num) {
assert(db != NULL); assert(db != NULL);
if (num > db->records) if (num <= 0 || num > db->records)
return false; return false;
if (simdb_read(db, num, 1, &rec) < 1) if (simdb_read(db, num, 1, &rec) < 1)

Loading…
Cancel
Save