pud: nmealib: fix copy/paste error
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 22 Oct 2012 09:50:59 +0000 (11:50 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 22 Oct 2012 11:55:39 +0000 (13:55 +0200)
Coverity:
CID 739627 (#1 of 1): Copy-paste error (COPY_PASTE_ERROR)
"lat" in "pos->lat" looks like a copy-paste error.
Should it say "lon" instead?

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/nmealib/src/gmath.c

index 8bda75e..3e6cefc 100644 (file)
@@ -398,7 +398,7 @@ void nmea_info2pos(const nmeaINFO *info, nmeaPOS *pos) {
        if (nmea_INFO_is_present(info->present, LON))
                pos->lon = nmea_ndeg2radian(info->lon);
        else
-               pos->lat = NMEA_DEF_LON;
+               pos->lon = NMEA_DEF_LON;
 }
 
 /**