From 4f8196934c04465d416e33c0baeafaaf1a3263d6 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 11 Dec 2007 13:14:39 +0000 Subject: [PATCH] sensord: Fix rrd support (#2276). git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5069 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/sensord/rrd.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index dc45bcd4..9b736e54 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN pwmconfig: Really hide errors on sysfs writes Deal gracefully with read-only pwm_enable files Warn about outputs found in automatic mode + sensord: Fix rrd support (#2276) sensors-detect: Drop PCA9540 detection 3.0.0 (2007-11-24) diff --git a/prog/sensord/rrd.c b/prog/sensord/rrd.c index bccec0d3..1da09685 100644 --- a/prog/sensord/rrd.c +++ b/prog/sensord/rrd.c @@ -156,10 +156,10 @@ applyToFeatures for (index0 = 0; (ret == 0) && (num < MAX_RRD_SENSORS) && features[index0].format; ++ index0) { const FeatureDescriptor *feature = features + index0; - const char *rawLabel = features->feature->name; + const char *rawLabel = feature->feature->name; char *label = NULL; - if (!(label = sensors_get_label (chip, features->feature))) { + if (!(label = sensors_get_label (chip, feature->feature))) { sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, rawLabel); ret = -1; } else {