1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 13:39:10 +00:00

Minor fix in linux.cc

This commit is contained in:
Pavel Labath 2013-01-13 13:33:32 +01:00
parent ac644fe44e
commit 8c19f0f520

View File

@ -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: ")) {