summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 4ff6daf8..cdbf3849 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -900,8 +900,8 @@ int main(int argc, char *argv[])
for (cfd = 0; cfd < FD_SETSIZE; cfd++) {
/* some listeners may be in watcher mode */
if (IS_WATCHER(cfd)) {
- device->poll_times[cfd] = timestamp();
char cmds[4] = "";
+ device->poll_times[cfd] = timestamp();
if (changed &~ ONLINE_SET) {
if (changed & LATLON_SET)
strcat(cmds, "o");