aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_unitconvert.c
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-01-04 14:54:41 +0100
committerKristian Evers <kristianevers@gmail.com>2018-01-05 00:29:04 +0100
commit81df68d8aa1ad9d9bb50f7266b231ec44cd36885 (patch)
treea5387b7fbd73c035f5ce1b7b79e3e8a6c2a8cd34 /src/PJ_unitconvert.c
parenta5ea3117194f214434a455aab9566d3f23f65f78 (diff)
downloadPROJ-81df68d8aa1ad9d9bb50f7266b231ec44cd36885.tar.gz
PROJ-81df68d8aa1ad9d9bb50f7266b231ec44cd36885.zip
Avoid overwriting time component with zero
Diffstat (limited to 'src/PJ_unitconvert.c')
-rw-r--r--src/PJ_unitconvert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_unitconvert.c b/src/PJ_unitconvert.c
index 106caabf..9cd2acf8 100644
--- a/src/PJ_unitconvert.c
+++ b/src/PJ_unitconvert.c
@@ -347,7 +347,7 @@ static PJ_COORD forward_4d(PJ_COORD obs, PJ *P) {
Forward conversion of time units
************************************************************************/
struct pj_opaque_unitconvert *Q = (struct pj_opaque_unitconvert *) P->opaque;
- PJ_COORD out = {{0,0,0,0}};
+ PJ_COORD out = obs;
/* delegate unit conversion of physical dimensions to the 3D function */
out.xyz = forward_3d(obs.lpz, P);
@@ -367,7 +367,7 @@ static PJ_COORD reverse_4d(PJ_COORD obs, PJ *P) {
Reverse conversion of time units
************************************************************************/
struct pj_opaque_unitconvert *Q = (struct pj_opaque_unitconvert *) P->opaque;
- PJ_COORD out = {{0,0,0,0}};
+ PJ_COORD out = obs;
/* delegate unit conversion of physical dimensions to the 3D function */
out.lpz = reverse_3d(obs.xyz, P);