mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 00:23:33 +08:00
Coverity 1304848
This commit is contained in:
@@ -422,6 +422,8 @@ std::string Frame::toString() const
|
||||
|
||||
for (unsigned i = 0; i < payload_len_; i++)
|
||||
{
|
||||
// Coverity Scan complains about payload_ being not default initialized. This is OK.
|
||||
// coverity[read_parm_fld]
|
||||
ofs += snprintf(buf + ofs, unsigned(BUFLEN - ofs), "%02x", payload_[i]);
|
||||
if ((i + 1) < payload_len_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user