From 86a72c72cb04843af58cd181579633c744fac6a5 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 3 Oct 2026 14:17:53 -0400 Subject: [PATCH] qrtplib: Initialize RTP session state Initialize RTPSession members in the constructor initializer list. Found by cppcheck. Signed-off-by: Robin Getz --- qrtplib/rtpsession.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qrtplib/rtpsession.cpp b/qrtplib/rtpsession.cpp index cdf0f3e2a..aaa67b455 100644 --- a/qrtplib/rtpsession.cpp +++ b/qrtplib/rtpsession.cpp @@ -56,6 +56,20 @@ namespace qrtplib RTPSession::RTPSession(RTPRandom *r) : rtprnd(GetRandomNumberGenerator(r)), + rtptrans(nullptr), + deletetransmitter(false), + usingpollthread(false), + acceptownpackets(false), + useSR_BYEifpossible(false), + maxpacksize(0), + sessionbandwidth(0.0), + controlfragment(0.0), + sendermultiplier(0.0), + byemultiplier(0.0), + membermultiplier(0.0), + collisionmultiplier(0.0), + notemultiplier(0.0), + sentpackets(false), sources(*this), packetbuilder(*rtprnd), rtcpsched(sources, *rtprnd),