summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-17 20:34:58 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-17 20:34:58 +0000
commitd2775f32036ac6b4831cbe963d451a22ceb8f8d5 (patch)
treeedcd680cef9b1c4699bd6a97b701fa237be38296 /cgps.c
parent214c5c82f340a0530f80fff6b368bf43ed3e8d35 (diff)
downloadgpsd-d2775f32036ac6b4831cbe963d451a22ceb8f8d5.tar.gz
Fix some overealousnes code removal last night.
status_timer has to be initialized.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgps.c b/cgps.c
index b7bfbdb0..5c9a2b63 100644
--- a/cgps.c
+++ b/cgps.c
@@ -773,6 +773,8 @@ int main(int argc, char *argv[])
gps_set_raw_hook(gpsdata, update_gps_panel);
}
+ status_timer = time(NULL);
+
(void)gps_stream(gpsdata, WATCH_ENABLE|WATCH_RAW|WATCH_NEWSTYLE, NULL);
/* heart of the client */