Prevent null pointer dereference. Reported by Tim Toohey.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2346 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-03-08 18:03:42 +00:00
1 parent 71a96916d5
commit 3957bad83f
1 file changed
+1 -1
+1 -1
View File
@@ -195,7 +195,7 @@ rrdGetSensors_DS
char *ptr = rrdBuff + data->num * RRD_BUFF;
const char *min, *max;
data->argv[data->num ++] = ptr;
switch (feature->type) { /* arbitrary sanity limits */
switch (feature ? feature->type : DataType_other) { /* arbitrary sanity limits */
case DataType_voltage:
min="-25";
max="25";