summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-22 12:19:14 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-22 13:01:56 -0500
commit272f891c7b852c5e7d16089622d6d42c3a875df2 (patch)
tree99d4cefa713776eddc22f7180bfaa9935995aef5 /gpsmon.c
parent162eb15775c1a282834de11c77624c02276e4be4 (diff)
downloadgpsd-272f891c7b852c5e7d16089622d6d42c3a875df2.tar.gz
Fix the negative-date problem in gpsmon.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 1c27deb6..928dfa11 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -533,6 +533,7 @@ int main(int argc, char **argv)
} else
gpsd_source_spec(NULL, &source);
+ gpsd_time_init(&context, time(NULL));
gpsd_init(&session, &context, NULL);
/*@ -boolops */