summaryrefslogtreecommitdiff
path: root/src/gclue-modem-gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gclue-modem-gps.c')
-rw-r--r--src/gclue-modem-gps.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gclue-modem-gps.c b/src/gclue-modem-gps.c
index df2a5ab..888a76d 100644
--- a/src/gclue-modem-gps.c
+++ b/src/gclue-modem-gps.c
@@ -216,21 +216,13 @@ on_fix_gps (GClueModem *modem,
GClueLocationSource *source = GCLUE_LOCATION_SOURCE (user_data);
GClueLocation *prev_location;
g_autoptr(GClueLocation) location = NULL;
- g_autoptr(GError) error = NULL;
prev_location = gclue_location_source_get_location (source);
- location = gclue_location_create_from_nmeas (nmeas,
- prev_location,
- &error);
-
- if (error != NULL) {
- g_warning ("Error: %s", error->message);
+ location = gclue_location_create_from_nmeas (nmeas, prev_location);
- return;
+ if (location) {
+ gclue_location_source_set_location (source, location);
}
-
- gclue_location_source_set_location (source,
- location);
}
static GClueLocationSourceStartResult