Robert C. Helling 13934b0f02 Check error code of get_cylider_idx_by_use()
If not cylinder with type DILUENT or OXYGEN is defined, this function
returns -1 which should not be used as an index to an array. This
patch adds code to check for this return value and exit gracefully.

On line I marked with a comment. Someone more knowledgeable of that part of
code than me should double check that return is here what we want.

[Dirk Hohndel: fixed small oversight...]

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-11-22 16:22:57 -08:00
..
2014-11-14 13:45:54 -08:00
2014-11-14 13:45:54 -08:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-06-01 15:42:32 -07:00