summaryrefslogtreecommitdiffstats
path: root/core/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/parse.c')
-rw-r--r--core/parse.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/parse.c b/core/parse.c
index 8bd960179..0581ace00 100644
--- a/core/parse.c
+++ b/core/parse.c
@@ -78,12 +78,7 @@ int trimspace(char *buffer)
*/
void record_dive_to_table(struct dive *dive, struct dive_table *table)
{
- assert(table != NULL);
- struct dive **dives = grow_dive_table(table);
- int nr = table->nr;
-
- dives[nr] = fixup_dive(dive);
- table->nr = nr + 1;
+ add_to_dive_table(table, table->nr, fixup_dive(dive));
}
void record_dive(struct dive *dive)