summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--load-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/load-git.c b/load-git.c
index d277ccea3..649663f2d 100644
--- a/load-git.c
+++ b/load-git.c
@@ -209,7 +209,7 @@ static void parse_dive_location(char *line, struct membuffer *str, void *_dive)
} else {
// we already had a dive site linked to the dive
if (same_string(ds->name, "")) {
- ds->name = name;
+ ds->name = strdup(name);
} else {
// and that dive site had a name. that's weird - if our name is different, add it to the notes
if (!same_string(ds->name, name))