mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
TerminalShell (Linux): fix segfault
This commit is contained in:
parent
ee60ec3530
commit
79ba9d7a68
@ -147,10 +147,13 @@ static const char* getProcessNameAndPpid(pid_t pid, char* name, pid_t* ppid, int
|
||||
)
|
||||
return "sscanf(stat) failed";
|
||||
|
||||
if (tty && (tty_ >> 8) == 0x88)
|
||||
if (tty)
|
||||
{
|
||||
if ((tty_ >> 8) == 0x88)
|
||||
*tty = tty_ & 0xFF;
|
||||
else
|
||||
*tty = -1;
|
||||
}
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user