diff --git a/src/algorithms/libs/rtklib/rtklib_preceph.cc b/src/algorithms/libs/rtklib/rtklib_preceph.cc index c6dec6056..2e4d73911 100644 --- a/src/algorithms/libs/rtklib/rtklib_preceph.cc +++ b/src/algorithms/libs/rtklib/rtklib_preceph.cc @@ -355,8 +355,7 @@ void readsp3(const char *file, nav_t *nav, int opt) *-----------------------------------------------------------------------------*/ int readsap(const char *file, gtime_t time, nav_t *nav) { - pcv_t aux = { 0, {}, {}, {0,0}, {0,0}, {{},{}}, {{},{}} }; - pcvs_t pcvs = {0, 0, &aux }; + pcvs_t pcvs = {0, 0, (pcv_t*){ 0 } }; pcv_t pcv0 = { 0, {}, {}, {0,0}, {0,0}, {{},{}}, {{},{}} }, *pcv; int i;