code cleanup: use explicit zero_location

Again, several different ways to achieve the same thing.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-08 20:55:29 -08:00
parent 247194e839
commit 70cabb968c
3 changed files with 7 additions and 5 deletions

View file

@ -139,6 +139,8 @@ typedef struct pos {
degrees_t lat, lon;
} location_t;
static const location_t zero_location = { { 0 }, { 0 }};
extern void parse_location(const char *, location_t *);
static inline bool has_location(const location_t *loc)