summaryrefslogtreecommitdiff
path: root/driver_ais.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-05-22 06:33:36 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-05-22 06:34:28 -0400
commit919e905567947637f0dc8e69e4671672a801cad3 (patch)
tree817956fb68a9b2cf90015b3a81bd4316fbecfe9c /driver_ais.c
parent62c5b4db2d5a6c0781315953dc01277deebf2bf5 (diff)
downloadgpsd-919e905567947637f0dc8e69e4671672a801cad3.tar.gz
An attempt to stabilize regression testing on some odd architectures.
Diffstat (limited to 'driver_ais.c')
-rw-r--r--driver_ais.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver_ais.c b/driver_ais.c
index 0bc40361..eedfeeb8 100644
--- a/driver_ais.c
+++ b/driver_ais.c
@@ -183,6 +183,8 @@ bool ais_binary_decode(const int debug,
ais->type6.dac = UBITS(72, 10);
ais->type6.fid = UBITS(82, 6);
ais->type6.bitcount = bitlen - 88;
+ /* not strictly required - helps stability in testing */
+ (void)memset(ais->type6.bitdata, '\0', sizeof(ais->type6.bitdata));
structured = false;
/* Inland AIS */
if (ais->type6.dac == 200) {
@@ -454,6 +456,8 @@ bool ais_binary_decode(const int debug,
ais->type8.dac = UBITS(40, 10);
ais->type8.fid = UBITS(50, 6);
ais->type8.bitcount = bitlen - 56;
+ /* not strictly required - helps stability in testing */
+ (void)memset(ais->type8.bitdata, '\0', sizeof(ais->type8.bitdata));
structured = false;
if (ais->type8.dac == 1)
switch (ais->type8.fid) {