You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ab...@apache.org on 2019/09/17 14:32:25 UTC

[nifi-minifi-cpp] branch master updated: MINIFICPP-1031 - RemoteProcessorGroupPort::setURL fails in case port is not specified in URL

This is an automated email from the ASF dual-hosted git repository.

aboda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


The following commit(s) were added to refs/heads/master by this push:
     new 86d5d3f  MINIFICPP-1031 - RemoteProcessorGroupPort::setURL fails in case port is not specified in URL
86d5d3f is described below

commit 86d5d3f9c15fa7563ad3f0f78e83d1f57a0ca945
Author: Arpad Boda <ar...@gmail.com>
AuthorDate: Tue Sep 17 12:48:12 2019 +0000

    MINIFICPP-1031 - RemoteProcessorGroupPort::setURL fails in case port is not specified in URL
    
    Signed-off-by: Arpad Boda <ab...@apache.org>
    
    Approved by bakaid on GH
    
    This closes #646
---
 libminifi/include/RemoteProcessorGroupPort.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libminifi/include/RemoteProcessorGroupPort.h b/libminifi/include/RemoteProcessorGroupPort.h
index 1b81f04..b28ee1f 100644
--- a/libminifi/include/RemoteProcessorGroupPort.h
+++ b/libminifi/include/RemoteProcessorGroupPort.h
@@ -146,7 +146,7 @@ class RemoteProcessorGroupPort : public core::Processor {
     for (auto url : urls) {
       logger_->log_trace("Parsing %s", url);
       std::string host, protocol;
-      int port;
+      int port = -1;
       url = utils::StringUtils::trim(url);
       utils::parse_url(&url, &host, &port, &protocol);
       logger_->log_trace("Parsed -%s- %s %s, %d", url, protocol, host, port);