nmea: fix time comparision
authorDaniel Golle <daniel@makrotopia.org>
Wed, 29 Apr 2020 17:14:16 +0000 (18:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 29 Apr 2020 17:56:02 +0000 (18:56 +0100)
commitdb40e3a22599641be68c88ece287d3fbbacd8a45
treed9e22f120331248b46d000e0cf0ce2985b1ab0d7
parentcd7eabcd8c9d17dab3946002127a82ad2f9e68c2
nmea: fix time comparision

Code introduced by commit b88037b ("check timegm return code") compares
GPS-time with tv_sec of freshly zero-initialized struct timeval tv.
Compare with current time instead.

Fixes: b88037b ("check timegm return code")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
nmea.c