sensors_free_features ();
#endif /* if SENSORS_HAVE_READ */
- ignorelist_free (sensor_list);
+ if (NULL != sensor_list)
+ ignorelist_free (sensor_list);
}
static void sensors_voltage_write (char *host, char *inst, char *val)
int status;
/* skip ignored in our config */
- if (ignorelist_match (sensor_list, inst))
+ if ((NULL != sensor_list) && ignorelist_match (sensor_list, inst))
return;
/* extended sensor naming */
int status;
/* skip ignored in our config */
- if (ignorelist_match (sensor_list, inst))
+ if ((NULL != sensor_list) && ignorelist_match (sensor_list, inst))
return;
/* extended sensor naming */
return;
/* skip ignored in our config */
- if (ignorelist_match (sensor_list, inst))
+ if ((NULL != sensor_list) && ignorelist_match (sensor_list, inst))
return;
if (snprintf (buf, BUFSIZE, "%u:%.3f", (unsigned int) curtime,