sensors plugin: fix shutdown for SENSORS_HAVE_READ
authorLubo¹ Stanìk <kolektor@atlas.cz>
Tue, 5 Dec 2006 15:34:28 +0000 (16:34 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 5 Dec 2006 17:04:18 +0000 (18:04 +0100)
Sorry, too many changes for me to observe at once.

Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
src/sensors.c

index 9cf0858..352ecf7 100644 (file)
@@ -342,6 +342,7 @@ static void sensors_shutdown (void)
 
        ignorelist_free (sensor_list);
 
+#if SENSORS_HAVE_READ
        while (thisft != NULL)
        {
                nextft = thisft->next;
@@ -350,6 +351,7 @@ static void sensors_shutdown (void)
        }
 
        sensors_cleanup ();
+#endif /* if SENSORS_HAVE_READ */
 }
 
 static void sensors_voltage_write (char *host, char *inst, char *val)