Skip to content

Commit d90318d

Browse files
committed
mqtt: compare pointers, not contents
1 parent 67483f3 commit d90318d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/espurna/mqtt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ struct MqttConfigureError {
579579
}
580580

581581
constexpr bool operator==(const MqttConfigureError& other) const {
582-
return _err == other._err;
582+
return _err.data() == other._err.data();
583583
}
584584

585585
MqttConfigureError(const MqttConfigureError&) = default;

0 commit comments

Comments
 (0)