summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-10 13:03:37 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-10 13:03:37 -0700
commitb0fc00694d93f0fa7883fedc7e5418febbf3723b (patch)
tree7165b1b8069133a0dc3ba1e6df9422d43397c810 /parse-xml.c
parent3b018204f21ebd5518a4047fc9f694a49c6c6182 (diff)
downloadsubsurface-b0fc00694d93f0fa7883fedc7e5418febbf3723b.tar.gz
Add "additional name" to the correct dive site
Adding the name to its own dive site was kind of silly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index e3938666d..b00ce10a9 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1267,7 +1267,7 @@ static void add_dive_site(char *ds_name, struct dive *dive)
newds->latitude = ds->latitude;
newds->longitude = ds->longitude;
}
- ds->notes = add_to_string(ds->notes, translate("gettextFromC", "additional name for site: %s\n"), ds->name);
+ newds->notes = add_to_string(newds->notes, translate("gettextFromC", "additional name for site: %s\n"), ds->name);
} else {
// add the existing dive site to the current dive
fprintf(stderr, "we have an existing location, using {%s}\n", ds->name);