summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2019-08-08 20:32:34 +0200
committermvglasow <michael -at- vonglasow.com>2019-08-08 20:32:34 +0200
commit9d8a1e599c0e8e064c9226c990b187242194d170 (patch)
tree6d2d8aeb8e84815eabe09581dd281097433ee569
parent29c0cd21160ab2b9ea697a963a32b20c4fd9ffed (diff)
downloadnavit-9d8a1e599c0e8e064c9226c990b187242194d170.tar.gz
Fix:traffic:Keep a copy of the string until we are done with it
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r--navit/traffic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/traffic.c b/navit/traffic.c
index 2b9c5ead3..907eefd6b 100644
--- a/navit/traffic.c
+++ b/navit/traffic.c
@@ -4735,7 +4735,7 @@ static void traffic_xml_end(xml_context *dummy, const char *tag_name, void *data
} else if (!g_ascii_strcasecmp((char *) tag_name, "not_via")) {
point = &state->not_via;
} else if (!g_ascii_strcasecmp((char *) tag_name, "navit_items")) {
- state->location_txt_data = el->text;
+ state->location_txt_data = g_strdup(el->text);
}
/*