From d47989c631f3502367dc84c826b0ee81d262579c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 1 Apr 2008 14:35:15 +0300 Subject: [PATCH] Fix quick poi sigsegv, _track is now dynamic --- src/path.c | 1 + src/poi-gui.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path.c b/src/path.c index f0b454f..197daac 100644 --- a/src/path.c +++ b/src/path.c @@ -123,6 +123,7 @@ return TRUE; void path_insert_mark_text(Path *path, gchar *text) { +g_assert(path); MACRO_PATH_INCREMENT_WTAIL(*path); path->wtail->point = path->tail; path->wtail->desc = text; diff --git a/src/poi-gui.c b/src/poi-gui.c index fd55bb7..55fa51a 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -1006,7 +1006,7 @@ if (poi_add(p)==FALSE) { /* Add a text break to the current track */ /* XXX: Get category string in here if label is empty */ txt=g_strdup_printf("QP(%d): %f %f %s", p->cat_id, p->lat, p->lon, p->label); - path_insert_mark_text(&_track, txt); + path_insert_mark_text(_track, txt); map_force_redraw(); if (qpdata->close==TRUE) -- 2.39.5