Skip to content

Commit

Permalink
mqtt: compare pointers, not contents
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Sep 10, 2024
1 parent 67483f3 commit d90318d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ struct MqttConfigureError {
}

constexpr bool operator==(const MqttConfigureError& other) const {
return _err == other._err;
return _err.data() == other._err.data();
}

MqttConfigureError(const MqttConfigureError&) = default;
Expand Down

0 comments on commit d90318d

Please sign in to comment.