diff --git a/src-cpp/rdkafkacpp_int.h b/src-cpp/rdkafkacpp_int.h index bc024ebe90..6a836d7e59 100644 --- a/src-cpp/rdkafkacpp_int.h +++ b/src-cpp/rdkafkacpp_int.h @@ -1289,7 +1289,7 @@ class TopicPartitionImpl : public TopicPartition { } void set_leader_epoch(int32_t leader_epoch) { - leader_epoch_ = leader_epoch_; + leader_epoch_ = leader_epoch; } std::ostream &operator<<(std::ostream &ostrm) const {