Commit 5c99eb7d authored by Vadim's avatar Vadim

Make getUnixPath() return the right value when called without an argument.

This fixes the verification in validateSpec()
parent ca8236e7
...@@ -209,8 +209,6 @@ ChannelEndPoint::getUnixPath(char **unixPath) const { ...@@ -209,8 +209,6 @@ ChannelEndPoint::getUnixPath(char **unixPath) const {
if (unixPath) if (unixPath)
*unixPath = NULL; *unixPath = NULL;
else
return false;
long p; long p;
char *path = NULL; char *path = NULL;
...@@ -230,6 +228,8 @@ ChannelEndPoint::getUnixPath(char **unixPath) const { ...@@ -230,6 +228,8 @@ ChannelEndPoint::getUnixPath(char **unixPath) const {
return false; return false;
} }
// Only return value wanted
if ( unixPath )
*unixPath = strdup(path); *unixPath = strdup(path);
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment