diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-12-20 08:57:17 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-12-20 08:57:17 +0000 |
commit | f53f20513adad56b5ea5bb962a7e1a9f54f98a64 (patch) | |
tree | b1602be1ca4b9c33f94b701b51b7c94ff1fe2a03 /plugins/ethercat | |
parent | f48dde14440b4c3dbcf1e9857f8bf0fb11d7303d (diff) |
fix
CC packet-ecatmb.lo
packet-ecatmb.c: In function 'dissect_ecat_mailbox':
packet-ecatmb.c:877:64: error: 'info.anSdoInfoUnion.Entry.ValueInfo' may be used uninitialized in this function [-Werror=uninitialized]
packet-ecatmb.c:796:38: note: 'info.anSdoInfoUnion.Entry.ValueInfo' was declared here
packet-ecatmb.c:884:34: error: 'info.anSdoInfoUnion.Entry.Res.BitLen' may be used uninitialized in this function [-Werror=uninitialized]
packet-ecatmb.c:796:38: note: 'info.anSdoInfoUnion.Entry.Res.BitLen' was declared here
svn path=/trunk/; revision=54286
Diffstat (limited to 'plugins/ethercat')
-rw-r--r-- | plugins/ethercat/packet-ecatmb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ethercat/packet-ecatmb.c b/plugins/ethercat/packet-ecatmb.c index c4597b559e..8f2786750a 100644 --- a/plugins/ethercat/packet-ecatmb.c +++ b/plugins/ethercat/packet-ecatmb.c @@ -801,6 +801,7 @@ static void dissect_ecat_coe(tvbuff_t *tvb, gint offset, packet_info *pinfo, pro break; } + memset(&info, 0x0, sizeof(info)); init_sdo_info_header(&info, tvb, offset); CANopenSdoInfoFormatter(&info, szText, nMax); |