Skip to content

Commit

Permalink
Initialize m_off member variable
Browse files Browse the repository at this point in the history
Static analysis (scan-build and coverity) noted that
the m_off variable in the RTPDataPacket class is not
initialized for UDPPackets, which are used in
RTPPacketBuffer::PushDataPacket

Fixes coverity 746870
(cherry picked from commit 86410ed)

Fixes #11589

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information
garybuhrmaster authored and stuartm committed Jun 15, 2013
1 parent fa1a178 commit f25dc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/rtp/rtpdatapacket.h
Expand Up @@ -27,7 +27,7 @@ class RTPDataPacket : public UDPPacket
{
public:
RTPDataPacket(const RTPDataPacket &o) : UDPPacket(o), m_off(o.m_off) { }
RTPDataPacket(const UDPPacket &o) : UDPPacket(o) { }
RTPDataPacket(const UDPPacket &o) : UDPPacket(o), m_off(0) { }
RTPDataPacket(uint64_t key) : UDPPacket(key), m_off(0) { }
RTPDataPacket(void) : UDPPacket(0ULL), m_off(0) { }

Expand Down

0 comments on commit f25dc5d

Please sign in to comment.