]> git.street.me.uk Git - andy/viking.git/blame - test/gpx2gpx.c
Fix crash if a route requested by the route finder is empty.
[andy/viking.git] / test / gpx2gpx.c
CommitLineData
f9ab07c8
GB
1#include <stdio.h>
2#include <gpx.h>
af806756 3#include <viklayer.h>
f9ab07c8
GB
4
5int main(int argc, char *argv[])
6{
72f4b00d
RN
7#if !GLIB_CHECK_VERSION (2, 36, 0)
8 g_type_init();
9#endif
2b49017b 10 VikLayer *vl = vik_layer_create (VIK_LAYER_TRW, NULL, FALSE);
af806756 11 VikTrwLayer *trw = VIK_TRW_LAYER (vl);
f9ab07c8 12 a_gpx_read_file(trw, stdin);
208d2084 13 a_gpx_write_file(trw, stdout, NULL);
af806756
RN
14 // NB no layer_free functions directly visible anymore
15 // automatically called by layers_panel_finalize cleanup in full Viking program
0034ee33 16 return 0;
f9ab07c8 17}