[empathy] Don't init vars with a function
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Don't init vars with a function
- Date: Wed, 27 May 2009 12:55:06 -0400 (EDT)
commit ed29d815833d874a16e6d0c5e08dcb9506333d76
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue Dec 30 14:22:33 2008 -0500
Don't init vars with a function
---
libempathy-gtk/empathy-contact-widget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 90fb7ba..30f1e4c 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]