config: Fall back to a default submission nick if lookup fails

parent 7301c9e1
......@@ -218,6 +218,7 @@ load_enable_source_config (GClueConfig *config,
#define DEFAULT_WIFI_URL "https://location.services.mozilla.com/v1/geolocate?key=" MOZILLA_API_KEY
#define DEFAULT_WIFI_SUBMIT_URL "https://location.services.mozilla.com/v1/submit?key=" MOZILLA_API_KEY
#define DEFAULT_WIFI_SUBMIT_NICK "geoclue"
static void
load_wifi_config (GClueConfig *config)
......@@ -269,6 +270,7 @@ load_wifi_config (GClueConfig *config)
g_debug ("Failed to get config \"wifi/submission-nick\": %s",
error->message);
g_error_free (error);
priv->wifi_submit_nick = g_strdup (DEFAULT_WIFI_SUBMIT_NICK);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment