diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2017-09-06 16:11:35 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2017-09-06 16:11:35 -0400 |
commit | cd2ecf6919b9c8f43d5c39bf4fd96a95476c01bd (patch) | |
tree | a5681a575f04b389205555b91e55ed412986dc2e /geoid.c | |
parent | c369d5418e87817996f6aa8e773e48a33bb9c719 (diff) | |
download | gpsd-cd2ecf6919b9c8f43d5c39bf4fd96a95476c01bd.tar.gz |
Fix a cut and paste error found by Coverity.
Diffstat (limited to 'geoid.c')
-rw-r--r-- | geoid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ void ecef_to_wgs84fix(struct gps_fix_t *fix, double *separation, /* sanity check the speed, 10,000 m/s should be a nice max */ if ( 9999.9 < fix->speed ) fix->speed = NAN; - else if ( -9999.9 > fix->speed ) + else if ( -9999.9 > fix->climb ) fix->speed = NAN; heading = atan2(fix_minuz(veast), fix_minuz(vnorth)); |