Skip to content

Commit

Permalink
do not assert on empty dbf files
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Nov 28, 2006
1 parent 6b88293 commit eeaf75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/input/shape/dbffile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void dbf_file::read_header()
{
skip(3);
num_records_=read_int();
assert(num_records_>0);
assert(num_records_>=0);
num_fields_=read_short();
assert(num_fields_>0);
num_fields_=(num_fields_-33)/32;
Expand Down

0 comments on commit eeaf75b

Please sign in to comment.