diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-01-03 22:28:43 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2018-01-07 01:27:07 +0100 |
commit | 23c36c2d2c0d1ea85c1b638d71267c28522c08cd (patch) | |
tree | cb379a43f3775a032834cd816e6d41663970001c /nx-X11 | |
parent | b89b8094934856ae2f2b0e3bca83d3fe171f87b9 (diff) | |
download | nx-libs-23c36c2d2c0d1ea85c1b638d71267c28522c08cd.tar.gz nx-libs-23c36c2d2c0d1ea85c1b638d71267c28522c08cd.tar.bz2 nx-libs-23c36c2d2c0d1ea85c1b638d71267c28522c08cd.zip |
Display.c: drop helper variable in loop
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c index 31efab8c3..4f2e3c6d8 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Display.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c @@ -1834,9 +1834,9 @@ static FILE *nxagentLookForIconFile(char *iconName, const char *permission, return NULL; } - for (int breakLoop = False; breakLoop == False && fptr == NULL; ) + for (char *end = path; end != NULL && fptr == NULL; ) { - char *end = strchr(path, separator); + end = strchr(path, separator); /* separator found */ if (end != NULL) @@ -1860,8 +1860,6 @@ static FILE *nxagentLookForIconFile(char *iconName, const char *permission, } snprintf(singlePath, sizeof(singlePath), "%s", path); - - breakLoop = True; } /* cut off trailing slashes, if any */ |