summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index a8e0582f3..c47d89980 100644
--- a/save-git.c
+++ b/save-git.c
@@ -900,7 +900,7 @@ static void save_divesites(git_repository *repo, struct dir *tree)
if (prefs.geocoding.enable_geocoding)
for (int j = 0; j < ds->taxonomy.nr; j++) {
struct taxonomy *t = &ds->taxonomy.category[j];
- if (t->category != TC_NONE) {
+ if (t->category != TC_NONE && t->value) {
put_format(&b, "geo cat %d origin %d ", t->category, t->origin);
show_utf8(&b, "", t->value, "\n" );
}