libmm-glib,location-gps-nmea: add missing type check in get_traces()

This commit is contained in:
Aleksander Morgado
2021-06-25 19:01:06 +02:00
parent c368a63e01
commit 49f52d9182
+2
View File
@@ -176,6 +176,8 @@ mm_location_gps_nmea_get_traces (MMLocationGpsNmea *self)
{
GPtrArray *built = NULL;
g_return_val_if_fail (MM_IS_LOCATION_GPS_NMEA (self), NULL);
g_hash_table_foreach (self->priv->traces,
(GHFunc)build_all_foreach,
&built);