1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-02 12:08:33 +00:00

shouldn't be any segfaults when using i2c stuff it it's not available

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@63 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-08-06 02:36:59 +00:00
parent c0b2a4075a
commit c2d9d524c0
3 changed files with 5 additions and 4 deletions

View File

@ -48,7 +48,7 @@
<f77flags/>
</optimized>
<debug>
<configargs>--enable-debug=full --prefix=/usr --enable-mpd --disable-xft --enable-seti --enable-double-buffer --disable-own-window --enable-metar --enable-mldonkey</configargs>
<configargs>--enable-debug=full --prefix=/usr --enable-mpd --enable-xft --enable-seti --enable-double-buffer --enable-own-window --enable-metar --enable-mldonkey</configargs>
<builddir>debug</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>

View File

@ -1,4 +1,4 @@
# CVS ebuild for Conky
# CVS ebuild for Conky, thanks to Hopeless
# $Header$
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/conky"

View File

@ -503,8 +503,9 @@ open_i2c_sensor(const char *dev, const char *type, int n, int *div,
/* open file */
fd = open(path, O_RDONLY);
if (fd < 0)
ERR("can't open '%s': %s", path, strerror(errno));
if (fd < 0) {
CRIT_ERR("can't open '%s': %s", path, strerror(errno));
}
if (strcmp(type, "in") == 0 || strcmp(type, "temp") == 0
|| strcmp(type, "tempf") == 0)