From 23cae9de84776d736c5c07fde7b74f8f2fa26dcd Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sat, 10 Mar 2018 10:32:48 +0100 Subject: [PATCH] fixed Address constructor --- include/amqpcpp/address.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/amqpcpp/address.h b/include/amqpcpp/address.h index 8851954..e9bab9a 100644 --- a/include/amqpcpp/address.h +++ b/include/amqpcpp/address.h @@ -80,7 +80,7 @@ public: if (strncmp(data, "amqps://", 8) == 0) _secure = true; // otherwise protocol must be amqp:// - else if (!strncmp(data, "amqp://", 7) != 0) throw std::runtime_error("AMQP address should start with \"amqp://\" or \"amqps://\""); + else if (strncmp(data, "amqp://", 7) != 0) throw std::runtime_error("AMQP address should start with \"amqp://\" or \"amqps://\""); // assign default port (we may overwrite it later) _port = defaultport();