[empathy] Level is used before init



commit 76d2f71aecdc4abd5ca423626792c66dc4eeb2b0
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin collabora co uk>
Date:   Mon Jun 1 12:10:29 2009 -0400

    Level is used before init
---
 libempathy-gtk/empathy-location-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 1acdb3b..436e0a2 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -290,9 +290,10 @@ address_changed_cb (GeoclueAddress *address,
   GHashTableIter iter;
   gpointer key, value;
 
+  geoclue_accuracy_get_details (accuracy, &level, NULL, NULL);
   DEBUG ("New address (accuracy level %d):", level);
+  /* FIXME: Publish accuracy level also considering the position's */
 
-  geoclue_accuracy_get_details (accuracy, &level, NULL, NULL);
   g_hash_table_remove (priv->location, EMPATHY_LOCATION_STREET);
   g_hash_table_remove (priv->location, EMPATHY_LOCATION_AREA);
   g_hash_table_remove (priv->location, EMPATHY_LOCATION_REGION);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]