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-06-26 15:47:02 -07:00
2014-02-08 08:00:27 -08:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-06-26 15:47:02 -07:00
2014-10-27 07:35:53 -07:00
2014-06-26 15:47:02 -07:00
2014-10-15 22:53:10 +02:00
2014-11-17 06:02:21 +00:00
2014-11-17 06:02:21 +00:00
2014-11-12 10:18:26 -08:00
2014-11-22 16:06:01 -08:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-10-19 07:24:15 -07:00
2014-11-17 06:02:21 +00:00
2014-11-17 06:02:21 +00:00
2014-07-18 10:21:42 -07:00
2014-08-08 11:13:05 -07:00
2014-07-16 09:11:04 -07:00