summaryrefslogtreecommitdiffstats
path: root/core/taxonomy.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/taxonomy.c')
-rw-r--r--core/taxonomy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/taxonomy.c b/core/taxonomy.c
index 8776862d6..1689d1952 100644
--- a/core/taxonomy.c
+++ b/core/taxonomy.c
@@ -78,8 +78,10 @@ void taxonomy_set_country(struct taxonomy_data *t, const char *country, enum tax
fprintf(stderr, "Error adding country taxonomy\n");
return;
}
- idx = ++t->nr;
+ idx = t->nr++;
}
t->category[idx].value = country;
t->category[idx].origin = origin;
+ t->category[idx].category = TC_COUNTRY;
+ fprintf(stderr, "%s: set the taxonomy country to %s\n", __func__, country);
}