]> err.no Git - mapper/commitdiff
Fix route file path related crasher
authorKaj-Michael Lang <milang@tal.org>
Thu, 10 Apr 2008 14:51:37 +0000 (17:51 +0300)
committerKaj-Michael Lang <milang@tal.org>
Thu, 10 Apr 2008 14:51:37 +0000 (17:51 +0300)
src/route.c

index efdb164c543631a2a7387e66aa1ad2535837731d..fec0c8e746858423e03bb40177c9571299b477b6 100644 (file)
@@ -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);