aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorVadim <vtroshchinskiy@qindel.com>2019-01-18 12:28:51 +0100
committerVadim <vtroshchinskiy@qindel.com>2019-01-21 10:02:55 +0100
commit5c99eb7d5d3121c4fff11e73b923a4c7a88263fc (patch)
tree35550c195f9d859caacc6e8085a1feddc5982ab0 /nxcomp
parentca8236e7fe565e851362a744bfa0312274e1f856 (diff)
downloadnx-libs-5c99eb7d5d3121c4fff11e73b923a4c7a88263fc.tar.gz
nx-libs-5c99eb7d5d3121c4fff11e73b923a4c7a88263fc.tar.bz2
nx-libs-5c99eb7d5d3121c4fff11e73b923a4c7a88263fc.zip
Make getUnixPath() return the right value when called without an argument.
This fixes the verification in validateSpec()
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/src/ChannelEndPoint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp
index 7768df137..635dd1ac7 100644
--- a/nxcomp/src/ChannelEndPoint.cpp
+++ b/nxcomp/src/ChannelEndPoint.cpp
@@ -209,8 +209,6 @@ ChannelEndPoint::getUnixPath(char **unixPath) const {
if (unixPath)
*unixPath = NULL;
- else
- return false;
long p;
char *path = NULL;
@@ -230,7 +228,9 @@ ChannelEndPoint::getUnixPath(char **unixPath) const {
return false;
}
- *unixPath = strdup(path);
+ // Only return value wanted
+ if ( unixPath )
+ *unixPath = strdup(path);
return true;
}