[Telepathy-commits] [telepathy-salut/master] Fixed pointer to GValue.
Jonny Lamb
jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:06 PST 2008
20080721200826-8ed0e-6cb9cffecf19a5eda4c48599caa7a02dae11e6d6.gz
---
src/salut-file-channel.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index 61ce44a..3056da1 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -877,7 +877,7 @@ salut_file_channel_accept_file (SalutSvcChannelTypeFile *iface,
{
SalutFileChannel *self = SALUT_FILE_CHANNEL (iface);
GError *error = NULL;
- GValue *out_address = { 0 };
+ GValue out_address = { 0 };
GibberFileTransfer *ft;
ft = self->priv->ft;
@@ -894,9 +894,10 @@ salut_file_channel_accept_file (SalutSvcChannelTypeFile *iface,
salut_file_channel_set_state (iface, SALUT_FILE_TRANSFER_STATE_OPEN,
SALUT_FILE_TRANSFER_STATE_CHANGE_REASON_NONE);
- g_value_init (out_address, G_TYPE_STRING);
+ g_value_init (&out_address, G_TYPE_STRING);
+ g_value_set_string (&out_address, g_build_filename (self->priv->local_unix_path, "tp-ft", NULL));
- salut_svc_channel_type_file_return_from_accept_file (context, out_address);
+ salut_svc_channel_type_file_return_from_accept_file (context, &out_address);
}
static void
--
1.5.6.5
More information about the Telepathy-commits
mailing list