From 97dd329a7bccfde29928ee2896249ae8e3e916ca Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 14 May 2019 18:57:39 +0200 Subject: [PATCH] client: zmqip bug fix (typo with strlen) --- slsDetectorSoftware/src/slsDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/slsDetector.cpp b/slsDetectorSoftware/src/slsDetector.cpp index 4b667ef6d..c3eb439a2 100755 --- a/slsDetectorSoftware/src/slsDetector.cpp +++ b/slsDetectorSoftware/src/slsDetector.cpp @@ -2177,7 +2177,7 @@ void slsDetector::setReceiverStreamingIP(std::string sourceIP) { memset(shm()->rxZmqip, 0, MAX_STR_LENGTH); sls::strcpy_safe(shm()->rxZmqip, args); // if zmqip is empty, update it - if (strlen(shm()->zmqip) != 0u) { + if (shm()->zmqip != 0u) { sls::strcpy_safe(shm()->zmqip, args); } FILE_LOG(logDEBUG1) << "Sending receiver streaming IP to receiver: "