From 28ba7e14e8b7aa78485dc914b8f2476ce5ff5505 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 1 Jun 2010 19:59:23 +0000 Subject: [PATCH] Fix sense of the dbf/date test. git-svn-id: http://svn.osgeo.org/postgis/trunk@5666 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/dbfopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/dbfopen.c b/loader/dbfopen.c index 7d8ffedb6..7b80ec9db 100644 --- a/loader/dbfopen.c +++ b/loader/dbfopen.c @@ -975,7 +975,7 @@ DBFIsAttributeNULL( DBFHandle psDBF, int iRecord, int iField ) case 'D': /* NULL date fields have value "00000000" */ - return (strncmp(pszValue,"0",1) || strncmp(pszValue,"00000000",8) == 0 || strlen(pszValue) == 0); + return (strncmp(pszValue,"0",1) == 0 || strncmp(pszValue,"00000000",8) == 0 || strlen(pszValue) == 0); case 'L': /* NULL boolean fields have value "?" */ -- 2.40.0