Fix segfault in i8k (sf.net #3007167)
authorPavel Labath <pavelo@centrum.sk>
Fri, 20 Aug 2010 10:07:21 +0000 (12:07 +0200)
committerPavel Labath <pavelo@centrum.sk>
Fri, 20 Aug 2010 21:35:33 +0000 (23:35 +0200)
commita4ac5952408a0ec53961d2e4d8a65977a7a021d1
treedb84717dfdbc265a9110a4ba23941df3e47aaa33
parent841c0c962fd208c69a21f4f278167dde597dc278
Fix segfault in i8k (sf.net #3007167)

Apparently, sometimes the value of i8k.right_fan_status is sometimes null. This just makes sure
the null value isn't passed to atoi(3). A better solution would be to figure out why is it null,
but I cannot do that as I don't have the hardware.
src/i8k.c