aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-02-20 10:40:20 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-02-20 10:40:20 +0100
commitde421e4fe03013735f550255f082ebb58f339bd5 (patch)
tree5546022ca7ec9b85888af6cb75722efe089fb5b6 /nxcomp/src
parent3572b251eb21d310ad49e6bdab11e36018b67d7c (diff)
downloadnx-libs-de421e4fe03013735f550255f082ebb58f339bd5.tar.gz
nx-libs-de421e4fe03013735f550255f082ebb58f339bd5.tar.bz2
nx-libs-de421e4fe03013735f550255f082ebb58f339bd5.zip
Revert "Fix parsing ports set to unix sockets"
This reverts commit 889de46f759913742478d2cfe20f1f4a6c2effdc. Fixes ArcticaProject/nx-libs#775.
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Loop.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 8e6f20efb..ddffcd1ca 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -7803,7 +7803,6 @@ int ParseEnvironmentOptions(const char *env, int force)
strcpy(opts, env);
char *nextOpts = opts;
- bool nxdisplay_found = false;
//
// Ensure that DISPLAY environment variable
@@ -7825,17 +7824,14 @@ int ParseEnvironmentOptions(const char *env, int force)
else if (strncasecmp(opts, "nx/nx,", 6) == 0)
{
nextOpts += 6;
- nxdisplay_found = true;
}
else if (strncasecmp(opts, "nx,", 3) == 0)
{
nextOpts += 3;
- nxdisplay_found = true;
}
else if (strncasecmp(opts, "nx:", 3) == 0)
{
nextOpts += 3;
- nxdisplay_found = true;
}
else if (force == 0)
{
@@ -7864,7 +7860,7 @@ int ParseEnvironmentOptions(const char *env, int force)
value = strrchr(nextOpts, ':');
- if (value != NULL && nxdisplay_found )
+ if (value != NULL)
{
char *check = value + 1;