summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-02 16:06:19 +0100
committerBenBE <BenBE@geshi.org>2020-12-02 19:14:22 +0100
commit9029cc83ad2f12cb447ed80d816684e856733a9a (patch)
treefc7e93ab99c7a8d0943aca977bd3b87bcc22c484 /linux/LinuxProcessList.c
parent43ee295c23a21fda6a36fa7bbe150a766e870664 (diff)
Merge identical conditional branches
Diffstat (limited to 'linux/LinuxProcessList.c')
-rw-r--r--linux/LinuxProcessList.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index b8d794a5..6e6b4d8d 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy