Set time to current by default
authorAndy Spencer <andy753421@gmail.com>
Sat, 17 Apr 2010 06:27:39 +0000 (06:27 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 17 Apr 2010 06:27:39 +0000 (06:27 +0000)
src/gis-viewer.c

index 075c039..f02d078 100644 (file)
@@ -556,6 +556,7 @@ static void gis_viewer_init(GisViewer *viewer)
 {
        g_debug("GisViewer: init");
        /* Default values */
+       viewer->time        = time(NULL);
        viewer->location[0] = 40;
        viewer->location[1] = -100;
        viewer->location[2] = 1.5*EARTH_R;