mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-18 11:09:32 +00:00
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:
1 parent
71a96916d5
commit
3957bad83f
1 file changed
+1
-1
+1
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user