]> git.tdb.fi Git - ext/subsurface.git/commit
Make fill_missing_tank_pressures robust against missing cylinder info
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Aug 2012 16:05:51 +0000 (09:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Aug 2012 16:05:51 +0000 (09:05 -0700)
commit52c3d11d2c2a0415bf501abff6c9f99b6a7f2cce
treee35a28af90db1d0b710bed341a84b9a1aa13b833
parent1a05f34ae89d35f6ece12dba7b6ab5f60df98705
Make fill_missing_tank_pressures robust against missing cylinder info

The code iterates over a list that can be NULL, but happily dereferenced
it anyway.  Oops.

This function really should be split up and commented more.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
profile.c