diff options
Diffstat (limited to 'core/import-divinglog.c')
-rw-r--r-- | core/import-divinglog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/import-divinglog.c b/core/import-divinglog.c index cd122c40a..5b9e4be3b 100644 --- a/core/import-divinglog.c +++ b/core/import-divinglog.c @@ -26,8 +26,7 @@ static int divinglog_cylinder(void *param, int columns, char **data, char **colu if (data[7] && atoi(data[7]) > 0) dbl = 2; - cylinder_start(state); - cyl = &state->cur_dive->cylinders.cylinders[state->cur_dive->cylinders.nr - 1]; + cyl = cylinder_start(state); /* * Assuming that we have to double the cylinder size, if double |