]> git.street.me.uk Git - andy/viking.git/blob - test/geotag_read.c
Coverity: Fix deference after null checks
[andy/viking.git] / test / geotag_read.c
1 #include <stdio.h>
2 #include <glib.h>
3 #include <glib/gstdio.h>
4 #include "geotag_exif.h"
5 #include "vikcoord.h"
6  
7 int main(int argc, char *argv[])
8 {
9 #if !GLIB_CHECK_VERSION(2,36,0)
10   g_type_init ();
11 #endif
12  
13   if ( argv[1] ) {
14     struct LatLon ll = a_geotag_get_position ( argv[1] );
15     g_printf ( "%.6f %.6f\n", ll.lat, ll.lon );
16   }
17  
18   return 0;
19 }
20