Skip to content
Snippets Groups Projects
Commit 69a099a8 authored by Zeeshan Ali Khan's avatar Zeeshan Ali Khan
Browse files

location: It's OK if NMEA doesn't provide altitude

We were requiring altitude from NMEA GGA sentences and that later ends up
in a crash cause we return a NULL location without setting an error.
parent a52c9945
No related branches found
No related tags found
No related merge requests found
......@@ -398,8 +398,6 @@ gclue_location_create_from_gga (const char *gga, GError **error)
}
altitude = parse_altitude_string (parts[9], parts[10]);
if (altitude == GEOCODE_LOCATION_ALTITUDE_UNKNOWN)
goto out;
hdop = g_ascii_strtod (parts[8], NULL);
accuracy = get_accuracy_from_hdop (hdop);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment