We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ede966 commit c0c9a0bCopy full SHA for c0c9a0b
Process.c
@@ -1081,7 +1081,7 @@ void Process_updateExe(Process* this, const char* exe) {
1081
if (exe) {
1082
this->procExe = xStrdup(exe);
1083
const char* lastSlash = strrchr(exe, '/');
1084
- this->procExeBasenameOffset = (lastSlash && *(lastSlash + 1) != '\0' && lastSlash != exe) ? (size_t)(lastSlash - exe + 1) : 0;
+ this->procExeBasenameOffset = (lastSlash > exe && *(lastSlash + 1) != '\0') ? (size_t)(lastSlash - exe + 1) : 0;
1085
} else {
1086
this->procExe = NULL;
1087
this->procExeBasenameOffset = 0;
0 commit comments