Commit 23c36c2d authored by Ulrich Sibiller's avatar Ulrich Sibiller

Display.c: drop helper variable in loop

parent b89b8094
......@@ -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 */
......
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