summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-15 13:21:45 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-29 19:28:31 +0000
commit2333321be2b6550a462d9cf92a1700d77d682734 (patch)
treea8b93eaf640a0b65a2cdf46744d71686ffed6039
parent3559e8dc58f847d58da2aa35ca4b7a18af8b93e1 (diff)
downloadtelepathy-mission-control-2333321be2b6550a462d9cf92a1700d77d682734.tar.gz
McdStorage: delete_cb: improve clarity with a temporary variable
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
-rw-r--r--src/mcd-storage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mcd-storage.c b/src/mcd-storage.c
index 11dab99d..0f965571 100644
--- a/src/mcd-storage.c
+++ b/src/mcd-storage.c
@@ -1770,16 +1770,17 @@ delete_cb (GObject *source,
gpointer user_data)
{
GError *error = NULL;
+ const gchar *account_name = user_data;
if (mcp_account_storage_delete_finish (MCP_ACCOUNT_STORAGE (source),
res, &error))
{
- DEBUG ("deleted account %s", (const gchar *) user_data);
+ DEBUG ("deleted account %s", account_name);
}
else
{
DEBUG ("could not delete account %s (but no way to signal that): "
- "%s #%d: %s", (const gchar *) user_data,
+ "%s #%d: %s", account_name,
g_quark_to_string (error->domain), error->code, error->message);
g_error_free (error);
}