do not assert on empty dbf files
This commit is contained in:
parent
6b88293808
commit
eeaf75b459
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue