mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Merge identical conditional branches
This commit is contained in:

committed by
BenBE

parent
43ee295c23
commit
9029cc83ad
@ -1117,9 +1117,7 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, openat_arg_t proc
|
||||
command[i] = '\n';
|
||||
}
|
||||
} else if (!tokenEnd) {
|
||||
if (command[i] == '/') {
|
||||
tokenStart = i + 1;
|
||||
} else if (command[i] == '\\' && (!tokenStart || command[tokenStart - 1] == '\\')) {
|
||||
if (command[i] == '/' || (command[i] == '\\' && (!tokenStart || command[tokenStart - 1] == '\\'))) {
|
||||
tokenStart = i + 1;
|
||||
} else if (command[i] == ':' && (command[i + 1] != '/' && command[i + 1] != '\\')) {
|
||||
tokenEnd = i;
|
||||
|
Reference in New Issue
Block a user