aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-contact-widget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 90fb7ba9e..30f1e4c25 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1236,12 +1236,13 @@ contact_widget_client_update (EmpathyContactWidget *information)
static void
contact_widget_location_update (EmpathyContactWidget *information)
{
- GHashTable *location = empathy_contact_get_location (information->contact);
+ GHashTable *location;
GValue *value;
gdouble lat, lon;
ClutterActor *marker;
ChamplainLayer *layer;
+ location = empathy_contact_get_location (information->contact);
value = g_hash_table_lookup (location, EMPATHY_LOCATION_LAT);
if (value == NULL)
{