1
0
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:
Brenden Matthews 2009-05-24 18:15:05 -06:00
parent 1c4044252c
commit f1cc5cf032

View File

@ -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;