mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 00:58:36 +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;
|
char *ret = NULL;
|
||||||
|
|
||||||
if (line) {
|
if (line) {
|
||||||
snprintf(line_s, 512, "%s", line);
|
if (!snprintf(line_s, 512, "%s", line)) return ret;
|
||||||
p = line_s;
|
p = line_s;
|
||||||
}
|
}
|
||||||
if (!(*line_s))
|
if (!(*line_s) || !p)
|
||||||
return ret;
|
return ret;
|
||||||
/* read the device */
|
/* read the device */
|
||||||
dev = ++p;
|
dev = ++p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user