Skip to content

Commit

Permalink
Re #9543. Clear Coverity warning.
Browse files Browse the repository at this point in the history
Tangentially related to the work of the current ticket.
  • Loading branch information
RussellTaylor committed Jun 10, 2014
1 parent 9204759 commit 9751081
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Code/Mantid/Framework/LiveData/src/ADARA/ADARAPackets.cpp
Expand Up @@ -256,14 +256,16 @@ void BankedEventPkt::firstEventInBank() const
/* ------------------------------------------------------------------------ */

BeamMonitorPkt::BeamMonitorPkt(const uint8_t *data, uint32_t len) :
Packet(data, len), m_fields((const uint32_t *)payload()), m_sectionStartIndex(0)
Packet(data, len), m_fields((const uint32_t *)payload()),
m_sectionStartIndex(0), m_eventNum(0)
{
if (m_payload_len < (4 * sizeof(uint32_t)))
throw invalid_packet("BeamMonitor packet is too short");
if (m_payload_len < (4 * sizeof(uint32_t)))
throw invalid_packet("BeamMonitor packet is too short");
}

BeamMonitorPkt::BeamMonitorPkt(const BeamMonitorPkt &pkt) :
Packet(pkt), m_fields((const uint32_t *)payload()), m_sectionStartIndex(0)
Packet(pkt), m_fields((const uint32_t *)payload()),
m_sectionStartIndex(0), m_eventNum(0)
{}

#define EVENT_COUNT_MASK 0x003FFFFF // lower 22 bits
Expand Down

0 comments on commit 9751081

Please sign in to comment.