summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-23 11:03:14 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-23 11:03:14 -0400
commit3cf6e481245f1fa1ec8b8a4876eae8705a052376 (patch)
treec4f6dc8007eea1d4b6e7ff03bd0aabab9c0021bc /gpsdecode.c
parent3fc3463a4907bd6c52e71d8b3a6709c09f01b030 (diff)
downloadgpsd-3cf6e481245f1fa1ec8b8a4876eae8705a052376.tar.gz
Make gpsdecode initialize its time context the same way gpsd does.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c1
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);