diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-15 09:06:34 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-15 09:06:34 -0400 |
commit | 7538ec0e83c3ab7bb45a6a395757158979f15b1f (patch) | |
tree | 7943de8b44e89940ee6b4e41239ef6956b4417e9 /libgps_json.c | |
parent | 45b68379a369b315420e75652ba624974ddd2c80 (diff) | |
download | gpsd-7538ec0e83c3ab7bb45a6a395757158979f15b1f.tar.gz |
Force some flag clears to ensure the library-side set member is correct.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c index d9d5a670..ad1fdfb7 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -177,6 +177,7 @@ static int json_noise_read(const char *buf, struct gps_data_t *gpsdata, } /*@+usedef@*/ + gpsdata->set &= ~UNION_SET; gpsdata->set |= GST_SET; return 0; } @@ -321,6 +322,9 @@ static int json_att_read(const char *buf, struct gps_data_t *gpsdata, /*@ +fullinitblock @*/ return json_read_object(buf, json_attrs_1, endptr); + + gpsdata->set &= ~UNION_SET; + gpsdata->set |= ATTITUDE_SET; } static int json_devicelist_read(const char *buf, struct gps_data_t *gpsdata, |