aboutsummaryrefslogtreecommitdiff
path: root/src/apps/cs2cs.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-05-03 20:54:42 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-05-03 20:54:42 +0200
commitc5346c7c25ca9fe281df39eaeefebc1aa4009266 (patch)
tree70dcbafe49373a1791dbc03e8830a2892b076221 /src/apps/cs2cs.cpp
parent768f76487f4d7486f6e07c2012d4a767f0584d07 (diff)
downloadPROJ-c5346c7c25ca9fe281df39eaeefebc1aa4009266.tar.gz
PROJ-c5346c7c25ca9fe281df39eaeefebc1aa4009266.zip
cs2cs: set time value to HUGE_VAL if not explicitly specified
Diffstat (limited to 'src/apps/cs2cs.cpp')
-rw-r--r--src/apps/cs2cs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apps/cs2cs.cpp b/src/apps/cs2cs.cpp
index 40b0d584..20e5e73c 100644
--- a/src/apps/cs2cs.cpp
+++ b/src/apps/cs2cs.cpp
@@ -123,6 +123,8 @@ static void process(FILE *fid)
/* is forward verbatim from the input. */
char *before_time = s;
double t = strtod(s, &s);
+ if( s == before_time )
+ t = HUGE_VAL;
s = before_time;
if (data.v == HUGE_VAL)