mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-26 00:28:25 +00:00
Actually fix hddtemp parsing.
This commit is contained in:
parent
1c4044252c
commit
f1cc5cf032
@ -84,10 +84,10 @@ static char *read_hdd_val(const char *line)
|
||||
char *ret = NULL;
|
||||
|
||||
if (line) {
|
||||
snprintf(line_s, 512, "%s", line);
|
||||
if (!snprintf(line_s, 512, "%s", line)) return ret;
|
||||
p = line_s;
|
||||
}
|
||||
if (!(*line_s))
|
||||
if (!(*line_s) || !p)
|
||||
return ret;
|
||||
/* read the device */
|
||||
dev = ++p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user