aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-05 21:55:53 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-06 13:37:08 +0800
commite49885103b7bd1754511282b05a1b44c13d7289f (patch)
tree302a99f9d0bfa40e5c749f22a917c1b32ef7716b
parentfe369729ae300f341fa250420b1596900da58742 (diff)
downloadgsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar.gz
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar.bz2
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar.lz
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar.xz
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.tar.zst
gsoc2013-empathy-e49885103b7bd1754511282b05a1b44c13d7289f.zip
mcp_account_manager_goa_get: rename 'n' to nkeys
-rw-r--r--goa-mc-plugin/mcp-account-manager-goa.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 7319f8cfc..7804f9ea1 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -373,7 +373,7 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
gpointer key, value;
GStrv keys;
guint i;
- gssize n;
+ gssize nkeys = 0;
/* Properties from GOA */
g_hash_table_iter_init (&iter, params);
@@ -383,12 +383,9 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
g_hash_table_destroy (params);
/* Stored properties */
- keys = g_key_file_get_keys (priv->store, acct, &n, NULL);
+ keys = g_key_file_get_keys (priv->store, acct, &nkeys, NULL);
- if (keys == NULL)
- n = 0;
-
- for (i = 0; i < n; i++)
+ for (i = 0; i < nkeys; i++)
{
gchar *v = g_key_file_get_value (priv->store, acct, keys[i], NULL);