Permalink
Browse files

FLTIsNumeric(): fix so that values like 2004-12-01 aren't recognized …

…as numeric on Linux (#5104)
  • Loading branch information...
rouault committed Jun 23, 2015
1 parent 3ffbb26 commit a2d862d2d0d86dec926573a4ec9ffcba809d3de9
Showing with 2 additions and 1 deletion.
  1. +2 −1 mapogcfilter.c
View
@@ -66,7 +66,8 @@ int FLTIsNumeric(const char *pszValue)
return MS_TRUE;
#else
char * p;
if (strtod(pszValue, &p) != 0 || *p == '\0') return MS_TRUE;
strtod(pszValue, &p);
if ( p != pszValue && *p == '\0') return MS_TRUE;
#endif
}

0 comments on commit a2d862d

Please sign in to comment.