From: Paul Ramsey Date: Tue, 1 Jun 2010 19:59:23 +0000 (+0000) Subject: Fix sense of the dbf/date test. X-Git-Tag: 2.0.0alpha1~2979 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28ba7e14e8b7aa78485dc914b8f2476ce5ff5505;p=postgis Fix sense of the dbf/date test. git-svn-id: http://svn.osgeo.org/postgis/trunk@5666 b70326c6-7e19-0410-871a-916f4a2858ee --- 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 "?" */