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 cdc0ca980..33c01ab83 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -930,8 +930,8 @@ static int create_git_tree(git_repository *repo, struct dir *root, bool select_o save_divesites(repo, root); - for (trip = dive_trip_list; trip != NULL; trip = trip->next) - trip->saved = 0; + for (i = 0; i < trip_table.nr; ++i) + trip_table.trips[i]->saved = 0; /* save the dives */ git_storage_update_progress(translate("gettextFromC", "Start saving dives")); |