diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 11:22:55 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-06-25 19:01:06 +0200 |
commit | 49f52d918240ef2e5d1c6b0af5d2013dab39f592 (patch) | |
tree | b71bd3c1484e44a6f4963828ff6823c34b78d906 | |
parent | c368a63e01dba01c966eac15c07486b82a15c14d (diff) |
libmm-glib,location-gps-nmea: add missing type check in get_traces()
-rw-r--r-- | libmm-glib/mm-location-gps-nmea.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmm-glib/mm-location-gps-nmea.c b/libmm-glib/mm-location-gps-nmea.c index 22e7ab46..a52ad34d 100644 --- a/libmm-glib/mm-location-gps-nmea.c +++ b/libmm-glib/mm-location-gps-nmea.c @@ -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); |