mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 01:57:09 +00:00
Minor fix in linux.cc
This commit is contained in:
parent
ac644fe44e
commit
8c19f0f520
@ -2649,6 +2649,9 @@ static void process_parse_stat(struct process *process)
|
||||
|
||||
endl = read(ps, line, BUFFER_LEN - 1);
|
||||
close(ps);
|
||||
if(endl < 0)
|
||||
return;
|
||||
line[endl] = 0;
|
||||
|
||||
/* account for "kdeinit: " */
|
||||
if ((char *) line == strstr(line, "kdeinit: ")) {
|
||||
|
Loading…
Reference in New Issue
Block a user