Skip to content

Commit

Permalink
FLTIsNumeric(): fix so that values like 2004-12-01 aren't recognized …
Browse files Browse the repository at this point in the history
…as numeric on Linux (#5104)
  • Loading branch information
rouault committed Jun 23, 2015
1 parent 3ffbb26 commit a2d862d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapogcfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a2d862d

Please sign in to comment.