]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikgoto.c
Mapnik library needs full filename for the configuration file.
[andy/viking.git] / src / vikgoto.c
index 27e5b3fa6120965d170e98d82f12c13c1246b397..640014f92bca19d98917cb568f2b4afd03f15e31 100644 (file)
@@ -31,7 +31,6 @@
 #include <glib/gi18n.h>
 
 #include "viking.h"
-#include "util.h"
 #include "vikgototool.h"
 #include "vikgoto.h"
 
@@ -250,7 +249,7 @@ void a_vik_goto(VikWindow *vw, VikViewport *vvp)
       if (last_successful_goto_str)
         g_free(last_successful_goto_str);
       last_successful_goto_str = g_strdup(last_goto_str);
-      vik_viewport_set_center_coord(vvp, &new_center);
+      vik_viewport_set_center_coord(vvp, &new_center, TRUE);
       more = FALSE;
     }
     else if (!prompt_try_again(vw))
@@ -299,8 +298,8 @@ gint a_vik_goto_where_am_i ( VikViewport *vvp, struct LatLon *ll, gchar **name )
 
   gchar lat_buf[32], lon_buf[32];
   lat_buf[0] = lon_buf[0] = '\0';
-  gchar *country;
-  gchar *city;
+  gchar *country = NULL;
+  gchar *city = NULL;
 
   if ((mf = g_mapped_file_new(tmpname, FALSE, NULL)) == NULL) {
     g_critical(_("couldn't map temp file"));