[empathy] empathy_account_settings_set_strv: we have to copy the key (#630168)



commit 4fb52741016fc1135eea200f83272e5b1a8b8bea
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Sep 20 17:39:55 2010 +0200

    empathy_account_settings_set_strv: we have to copy the key (#630168)

 libempathy/empathy-account-settings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 43bba44..1278bb4 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -877,7 +877,7 @@ empathy_account_settings_set_strv (EmpathyAccountSettings *settings,
 {
   EmpathyAccountSettingsPriv *priv = GET_PRIV (settings);
 
-  tp_asv_set_strv (priv->parameters, param, value);
+  tp_asv_set_strv (priv->parameters, g_strdup (param), value);
 
   account_settings_remove_from_unset (settings, param);
 }



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