Lubomir I. Ivanov e4a9787c5e dive.h: add handling of NULL in get_dive_dc()
This line:
    dc = &dive->dc
can SIGSEGV for a NULL 'dive' pointer.
return NULL if 'dive' is NULL.

Also handle NULL 'dc' in get_gasmix() and set 'ev' to NULL.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-19 22:03:51 -04:00
..
2017-10-14 04:32:50 -07:00
2017-10-01 23:58:55 +03:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-18 23:19:13 +02:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:52:04 -07:00
2017-08-26 12:15:43 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-08 19:41:54 +03:00
2017-04-29 13:32:55 -07:00
2017-05-26 15:44:36 -07:00
2017-07-19 06:21:23 -07:00
2017-08-29 06:49:44 -07:00
2017-08-29 06:49:44 -07:00
2017-04-29 13:32:55 -07:00
2017-09-14 07:33:55 +02:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2017-07-17 16:50:03 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00