]> git.street.me.uk Git - andy/viking.git/blobdiff - test/test_vikgotoxmltool.c
Coverity: Fix deference after null checks
[andy/viking.git] / test / test_vikgotoxmltool.c
index d58de9128a8e1c8e809d917d7a9a859f69eb4b87..d48233fee3ef7ed57c21cbaf9c6efe52d19e1280 100644 (file)
@@ -14,8 +14,10 @@ void parse(VikGotoTool *tool, gchar *filename)
 
 int main(int argc, char *argv[])
 {
+#if !GLIB_CHECK_VERSION (2, 36, 0)
   g_type_init();
-  
+#endif
+
   VikGotoXmlTool *with_element = VIK_GOTO_XML_TOOL ( g_object_new ( VIK_GOTO_XML_TOOL_TYPE, "label", "OSM",
     "url-format", "http://ws.geonames.org/search?q=%s&maxRows=1&lang=es&style=short",
     "lat-path", "/geonames/geoname/lat",