From: Kaj-Michael Lang Date: Tue, 1 Apr 2008 11:35:15 +0000 (+0300) Subject: Fix quick poi sigsegv, _track is now dynamic X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d47989c631f3502367dc84c826b0ee81d262579c;p=mapper Fix quick poi sigsegv, _track is now dynamic --- 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)