From 3f47bb6f475ce33036ca2aa51743ed6090269955 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 8 Jan 2013 19:23:25 +0100 Subject: [PATCH] Initialize aircraft speed in interactive mode. The effect of this bug was random speeds displayed with --interactive. --- dump1090.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dump1090.c b/dump1090.c index 7dd9073..0ea56ba 100644 --- a/dump1090.c +++ b/dump1090.c @@ -1202,6 +1202,7 @@ struct aircraft *interactiveCreateAircraft(uint32_t addr) { snprintf(a->hexaddr,sizeof(a->hexaddr),"%06x",(int)addr); a->flight[0] = '\0'; a->altitude = 0; + a->speed = 0; a->seen = time(NULL); a->messages = 0; a->next = NULL;