From 6653c8ba776a08801bb7fd762c79f45acad91785 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 10 Apr 2008 17:51:37 +0300 Subject: [PATCH] Fix route file path related crasher --- src/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/route.c b/src/route.c index efdb164..fec0c8e 100644 --- a/src/route.c +++ b/src/route.c @@ -110,7 +110,7 @@ route_open_file(void) gchar *buffer; gint size; -if (file_open_get_contents(_route_dir_uri, &buffer, &size)) { +if (file_open_get_contents(&_route_dir_uri, &buffer, &size)) { /* If auto is enabled, append the route, otherwise replace it. */ if (gpx_parse(_route, buffer, size, _autoroute_data.enabled ? GPX_PATH_APPEND : GPX_PATH_NEW)) { route_cancel_autoroute(FALSE); -- 2.39.5