提交 936c302d authored 作者: José Luis Millán's avatar José Luis Millán

RTCP XR: initialize member variable 'raw'

上级 66b6c647
...@@ -64,7 +64,7 @@ namespace RTC ...@@ -64,7 +64,7 @@ namespace RTC
CommonHeader* header{ nullptr }; CommonHeader* header{ nullptr };
private: private:
uint8_t raw[sizeof(CommonHeader)]; uint8_t raw[sizeof(CommonHeader)] = { 0 };
}; };
class ExtendedReportPacket : public Packet class ExtendedReportPacket : public Packet
......
...@@ -62,7 +62,7 @@ namespace RTC ...@@ -62,7 +62,7 @@ namespace RTC
private: private:
Body* body{ nullptr }; Body* body{ nullptr };
uint8_t raw[sizeof(Body)]; uint8_t raw[sizeof(Body)] = { 0 };
}; };
public: public:
......
...@@ -53,7 +53,7 @@ namespace RTC ...@@ -53,7 +53,7 @@ namespace RTC
private: private:
Body* body{ nullptr }; Body* body{ nullptr };
uint8_t raw[sizeof(Body)]; uint8_t raw[sizeof(Body)] = { 0 };
}; };
/* Inline instance methods. */ /* Inline instance methods. */
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论