summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index 1228b7762..9aa7bfd0e 100644
--- a/save-git.c
+++ b/save-git.c
@@ -405,7 +405,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b)
save_tags(b, dive->tag_list);
cond_put_format(dive->dive_site_uuid && get_dive_site_by_uuid(dive->dive_site_uuid),
b, "divesiteid %08x\n", dive->dive_site_uuid);
- if (verbose && dive->dive_site_uuid && get_dive_site_by_uuid(dive->dive_site_uuid))
+ if (verbose && dive->dive_site_uuid && !get_dive_site_by_uuid(dive->dive_site_uuid))
fprintf(stderr, "removed reference to non-existant dive site with uuid %08x\n", dive->dive_site_uuid);
save_overview(b, dive);
save_cylinder_info(b, dive);