From 3cf6e481245f1fa1ec8b8a4876eae8705a052376 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 23 Jun 2011 11:03:14 -0400 Subject: Make gpsdecode initialize its time context the same way gpsd does. --- gpsdecode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gpsdecode.c') diff --git a/gpsdecode.c b/gpsdecode.c index b1634392..ca1f3600 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -398,6 +398,7 @@ static void decode(FILE *fpin, FILE*fpout) policy.json = json; gps_context_init(&context); + gpsd_time_init(&context, time(NULL)); context.readonly = true; gpsd_init(&session, &context, NULL); gpsd_clear(&session); -- cgit v1.2.1