From eeaf75b459a06f79660807262961138aba9ac8d2 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 28 Nov 2006 22:25:31 +0000 Subject: [PATCH] do not assert on empty dbf files --- plugins/input/shape/dbffile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/shape/dbffile.cpp b/plugins/input/shape/dbffile.cpp index 1f73cc252..33bff1d40 100644 --- a/plugins/input/shape/dbffile.cpp +++ b/plugins/input/shape/dbffile.cpp @@ -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;