From ed679900c66d8c634afaab82c54d625968875af6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 12 Sep 2019 12:30:26 +0200 Subject: proj_trans_generic(): properly set coordinate time to HUGE_VAL when no value is passed to the function --- src/4D_api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/4D_api.cpp') diff --git a/src/4D_api.cpp b/src/4D_api.cpp index ffef8d81..70eaac6a 100644 --- a/src/4D_api.cpp +++ b/src/4D_api.cpp @@ -362,6 +362,7 @@ size_t proj_trans_generic ( PJ_COORD coord = {{0,0,0,0}}; size_t i, nmin; double null_broadcast = 0; + double invalid_time = HUGE_VAL; if (nullptr==P) return 0; @@ -379,7 +380,7 @@ size_t proj_trans_generic ( if (0==nx) x = &null_broadcast; if (0==ny) y = &null_broadcast; if (0==nz) z = &null_broadcast; - if (0==nt) t = &null_broadcast; + if (0==nt) t = &invalid_time; /* nothing to do? */ if (0==nx+ny+nz+nt) -- cgit v1.2.3