aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_i2c_sensors.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_i2c_sensors.c')
-rw-r--r--plugin_i2c_sensors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c
index cba3827..e47f407 100644
--- a/plugin_i2c_sensors.c
+++ b/plugin_i2c_sensors.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_i2c_sensors.c 728 2007-01-14 11:14:38Z michael $
+/* $Id: plugin_i2c_sensors.c 773 2007-02-25 12:39:09Z michael $
* $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/plugin_i2c_sensors.c $
*
* I2C sensors plugin
@@ -113,7 +113,7 @@ static int parse_i2c_sensors_sysfs(const char *key)
fgets(buffer, sizeof(buffer), stream);
fclose(stream);
- if (!buffer) {
+ if (buffer[0] == '\0') {
error("i2c_sensors: %s empty ?!", file);
return -1;
}
@@ -183,7 +183,7 @@ static int parse_i2c_sensors_procfs(const char *key)
fgets(buffer, sizeof(buffer), stream);
fclose(stream);
- if (!buffer) {
+ if (buffer[0] == '\0') {
error("i2c_sensors: %s empty ?!", file);
return -1;
}