]> granicus.if.org Git - postgis/commitdiff
Fix sense of the dbf/date test.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 1 Jun 2010 19:59:23 +0000 (19:59 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 1 Jun 2010 19:59:23 +0000 (19:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5666 b70326c6-7e19-0410-871a-916f4a2858ee

loader/dbfopen.c

index 7d8ffedb65e0f595d6803b936c57eef40c721531..7b80ec9dbe8633a08972cfb191754269dd7d30ba 100644 (file)
@@ -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 "?" */