]> git.street.me.uk Git - andy/viking.git/blobdiff - src/geonamessearch.c
Fix incorrect GPSBabel/Garmin symbol names.
[andy/viking.git] / src / geonamessearch.c
index 4b60b7186261018d152220925b398bbec0cff792..3af6426a9d2c5128b1ebd8edb55aaa7ce6310c76 100644 (file)
@@ -267,6 +267,7 @@ static GList *get_entries_from_file(gchar *file_name)
 
   if ((mf = g_mapped_file_new(file_name, FALSE, NULL)) == NULL) {
     g_critical(_("couldn't map temp file"));
 
   if ((mf = g_mapped_file_new(file_name, FALSE, NULL)) == NULL) {
     g_critical(_("couldn't map temp file"));
+    return NULL;
   }
   len = g_mapped_file_get_length(mf);
   text = g_mapped_file_get_contents(mf);
   }
   len = g_mapped_file_get_length(mf);
   text = g_mapped_file_get_contents(mf);