mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
Don't abort when config references a non-existant hwmon file
this sort of fixes sf.net #3306538. The person there correctly tested for the existance of the file with $if_existing, but the problem is we run the callbacks regardless of the conditional tests.
This commit is contained in:
parent
8905dbb313
commit
70032e713a
@ -1105,7 +1105,8 @@ void free_sysfs_sensor(struct text_object *obj)
|
||||
if (!sf)
|
||||
return;
|
||||
|
||||
close(sf->fd);
|
||||
if(sf->fd >= 0)
|
||||
close(sf->fd);
|
||||
free(obj->data.opaque);
|
||||
obj->data.opaque = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user