summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 66f4fd531..0abae4239 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -1208,7 +1208,7 @@ static struct dive *create_new_dive(timestamp_t when)
static dive_trip_t *create_new_trip(int yyyy, int mm, int dd)
{
- dive_trip_t *trip = calloc(1, sizeof(dive_trip_t));
+ dive_trip_t *trip = alloc_trip();
struct tm tm = { 0 };
/* We'll fill in the real data from the trip descriptor file */