aboutsummaryrefslogtreecommitdiff
path: root/src/apps/cs2cs.cpp
diff options
context:
space:
mode:
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)