diff options
author | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
commit | 874ef72c5b807b61bc53dbaa0fa623b40bff1736 (patch) | |
tree | 3c44151e2132fa82d3e7eef2aa82eee1c9e1369d /plugin_i2c_sensors.c | |
parent | cbaf3ad73900f63eae0add0e33439a1bf04b5a1e (diff) | |
download | lcd4linux-874ef72c5b807b61bc53dbaa0fa623b40bff1736.tar.gz |
new upstream version
Diffstat (limited to '')
-rw-r--r-- | plugin_i2c_sensors.c | 6 |
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; } |