lordgamez commented on a change in pull request #979:
URL: https://github.com/apache/nifi-minifi-cpp/pull/979#discussion_r584890327



##########
File path: extensions/mqtt/processors/PublishMQTT.h
##########
@@ -79,7 +79,7 @@ class PublishMQTT : public processors::AbstractMQTTProcessor {
       if (flow_size_ < max_seg_size_)
         max_seg_size_ = flow_size_;
       std::vector<unsigned char> buffer;
-      buffer.reserve(max_seg_size_);
+      buffer.resize(max_seg_size_);

Review comment:
       @adamdebreceni suggested using resize instead of reserve, and I changed 
it in all occurrences. I'll move it to constructor.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to