We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fb85c commit af6c0ffCopy full SHA for af6c0ff
src/AwsIotChannel.cpp
@@ -96,7 +96,7 @@ AwsIotChannel::subscribe()
96
{
97
TraceModule::get().incrementAtomicVariable( TraceAtomicVariable::SUBSCRIBE_ERROR );
98
// coverity[cert_str51_cpp_violation] - pointer comes from std::string, which can't be null
99
- auto reasonString = std::string( subAckPacket->getReasonString()->c_str() != nullptr
+ auto reasonString = std::string( subAckPacket->getReasonString().has_value()
100
? subAckPacket->getReasonString()->c_str()
101
: "Unknown reason" );
102
FWE_LOG_ERROR( "Server rejected subscription to topic " + mTopicName + ". Reason code " +
0 commit comments