diff --git a/src/sensors.c b/src/sensors.c
index 9cf0858ffeeff3c65b754c42896b325cdb85eeaa..ff8b580de0a688e51bf6e02c6541de1d636b54ca 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
static void sensors_shutdown (void)
{
static void sensors_shutdown (void)
{
+#if SENSORS_HAVE_READ
featurelist_t *thisft = first_feature;
featurelist_t *nextft;
featurelist_t *thisft = first_feature;
featurelist_t *nextft;
- ignorelist_free (sensor_list);
-
while (thisft != NULL)
{
nextft = thisft->next;
while (thisft != NULL)
{
nextft = thisft->next;
}
sensors_cleanup ();
}
sensors_cleanup ();
+#endif /* if SENSORS_HAVE_READ */
+
+ ignorelist_free (sensor_list);
}
static void sensors_voltage_write (char *host, char *inst, char *val)
}
static void sensors_voltage_write (char *host, char *inst, char *val)