aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-09-06 01:30:06 +0200
committerUlrich Sibiller <uli42@gmx.de>2020-01-05 22:37:36 +0100
commit6d783bac27b665e1c1bc223ec2e7692dc42399da (patch)
tree35cb51132db4d5ffa25281b7ee75956f16b29682 /nx-X11/programs/Xserver/hw/nxagent
parentd94f472744355c71987d145727aecace1e8455b6 (diff)
downloadnx-libs-6d783bac27b665e1c1bc223ec2e7692dc42399da.tar.gz
nx-libs-6d783bac27b665e1c1bc223ec2e7692dc42399da.tar.bz2
nx-libs-6d783bac27b665e1c1bc223ec2e7692dc42399da.zip
Error.c: Code simplification
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Error.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Error.c b/nx-X11/programs/Xserver/hw/nxagent/Error.c
index ed1580efa..6b91ea94d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.c
@@ -434,7 +434,6 @@ char *nxagentGetRootPath(void)
*/
struct stat dirStat;
-
if ((stat(nxagentRootDir, &dirStat) == -1) && (errno == ENOENT))
{
if (mkdir(nxagentRootDir, 0777) < 0 && (errno != EEXIST))
@@ -530,7 +529,6 @@ char *nxagentGetSessionPath(void)
SAFE_free(rootPath);
struct stat dirStat;
-
if ((stat(nxagentSessionDir, &dirStat) == -1) && (errno == ENOENT))
{
if (mkdir(nxagentSessionDir, 0777) < 0 && (errno != EEXIST))
@@ -567,7 +565,6 @@ char *nxagentGetSessionPath(void)
void nxagentGetClientsPath(void)
{
-
if (*nxagentClientsLogName == '\0')
{
char *sessionPath = nxagentGetSessionPath();