MINIFICPP-1031 - RemoteProcessorGroupPort::setURL fails in case port is not specified in URL

Signed-off-by: Arpad Boda <aboda@apache.org>

Approved by bakaid on GH

This closes #646
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 @@
     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);