From: Kaj-Michael Lang Date: Thu, 10 Apr 2008 14:51:37 +0000 (+0300) Subject: Fix route file path related crasher X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6653c8ba776a08801bb7fd762c79f45acad91785;p=mapper Fix route file path related crasher --- 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);