[Telepathy-commits] [telepathy-gabble/master] Location: Move the variable declaration near the block where they are used
Alban Crequy
alban.crequy at collabora.co.uk
Sun Feb 1 05:23:58 PST 2009
---
src/conn-location.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/conn-location.c b/src/conn-location.c
index 38047fb..7da0433 100644
--- a/src/conn-location.c
+++ b/src/conn-location.c
@@ -282,9 +282,6 @@ update_location_from_msg (GabbleConnection *conn,
LmMessage *msg)
{
LmMessageNode *node, *subloc_node;
- gchar *key, *str;
- gdouble double_value;
- GValue *value;
GHashTable *location = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_free,
(GDestroyNotify) tp_g_value_slice_free);
guint contact = lookup_contact ((TpBaseConnection *) conn, from);
@@ -298,6 +295,10 @@ update_location_from_msg (GabbleConnection *conn,
for (subloc_node = node->children; subloc_node != NULL;
subloc_node = subloc_node->next)
{
+ GValue *value;
+ gdouble double_value;
+ gchar *key, *str;
+
key = subloc_node->name;
if ((strcmp (key, "lat") == 0 ||
--
1.5.6.5
More information about the Telepathy-commits
mailing list