do not assert on empty dbf files

This commit is contained in:
Artem Pavlenko 2006-11-28 22:25:31 +00:00
parent 6b88293808
commit eeaf75b459

View file

@ -178,7 +178,7 @@ void dbf_file::read_header()
{ {
skip(3); skip(3);
num_records_=read_int(); num_records_=read_int();
assert(num_records_>0); assert(num_records_>=0);
num_fields_=read_short(); num_fields_=read_short();
assert(num_fields_>0); assert(num_fields_>0);
num_fields_=(num_fields_-33)/32; num_fields_=(num_fields_-33)/32;