diff options
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |