From dc8477f76372e685eb999a71afb4e5ec7e3176f1 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 9 Mar 2017 09:22:03 +0100 Subject: nxcomp/ChannelEndPoint.cpp: we're not really testing for a character, but a pointer. Fixes: ArcticaProject/nxlibs#389. --- nxcomp/ChannelEndPoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nxcomp') diff --git a/nxcomp/ChannelEndPoint.cpp b/nxcomp/ChannelEndPoint.cpp index 8f7d0c68b..286210dc7 100644 --- a/nxcomp/ChannelEndPoint.cpp +++ b/nxcomp/ChannelEndPoint.cpp @@ -137,7 +137,7 @@ ChannelEndPoint::getSpec(char **socketUri) const { free(unixPath); free(hostName); - if (*socketUri != '\0') + if (NULL != *socketUri) return true; return false; -- cgit v1.2.3