author | Jon Tibble <meths@btinternet.com> |
Mon, 04 May 2015 14:04:39 +0100 | |
branch | oi_151a |
changeset 254 | 9c2a4ac793f0 |
parent 0 | b34509ac961f |
permissions | -rw-r--r-- |
0 | 1 |
--- ipmitool-1.8.10/lib/ipmi_sdr.c.orig Fri Nov 21 13:00:00 2008 |
2 |
+++ ipmitool-1.8.10/lib/ipmi_sdr.c Fri Nov 21 13:01:00 2008 |
|
3 |
@@ -1760,7 +1760,8 @@ |
|
4 |
printf("ns | %2d.%1d | ", |
|
5 |
sensor->entity.id, |
|
6 |
sensor->entity.instance); |
|
7 |
- if (IS_SCANNING_DISABLED(rsp->data[1])) |
|
8 |
+ if ((rsp != NULL) && |
|
9 |
+ IS_SCANNING_DISABLED(rsp->data[1])) |
|
10 |
printf("Disabled"); |
|
11 |
else |
|
12 |
printf("No Reading"); |