diff options
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/save-git.c b/core/save-git.c index 524c350ed..b118cff3d 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -890,7 +890,7 @@ static void save_divesites(git_repository *repo, struct dir *tree) if (d->dive_site_uuid == ds->uuid) d->dive_site_uuid = 0; } - delete_dive_site(ds->uuid); + delete_dive_site(ds); i--; // since we just deleted that one continue; } else if (ds->name && @@ -903,7 +903,7 @@ static void save_divesites(git_repository *repo, struct dir *tree) if (!is_dive_site_used(ds, false)) { if (verbose) fprintf(stderr, "Deleted unused auto-created dive site %s\n", ds->name); - delete_dive_site(ds->uuid); + delete_dive_site(ds); i--; // since we just deleted that one continue; } |