Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Jan 2012 16:37:04 +0000 (16:37 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 13 Jan 2012 16:37:04 +0000 (16:37 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40474 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/ethercat/packet-ecatmb.c

index 700bdb935efdb88e8643057e598976c41fb63ada..694a53e7b981aff712c4427a18654e4184abb105 100644 (file)
@@ -296,7 +296,7 @@ void init_sdo_header(PETHERCAT_SDO_HEADER pSdo, tvbuff_t *tvb, gint offset)
 void init_sdo_info_header(PETHERCAT_SDO_INFO_HEADER pInfo, tvbuff_t *tvb, gint offset)
 {
    pInfo->anSdoControlUnion.Control = tvb_get_guint8(tvb, offset++);
-   pInfo->Reserved = tvb_get_guint8(tvb, offset++);
+   pInfo->Reserved = tvb_get_guint8(tvb, offset);
    pInfo->FragmentsLeft = sizeof(guint16);
 }