summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2012-04-13 14:12:53 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2012-04-13 14:12:53 +0100
commitef2fb6a8e6decde7d225a17e8e894140f0dbefb2 (patch)
tree52c19f26b495adef9e8e30f6d3313ebfcbd96af5
parent11ca259567fc7e01bfd88620c1003994af9f8ff1 (diff)
GValue was unset in a code path that needed it to stay set
-rw-r--r--src/mcd-account-manager-sso.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mcd-account-manager-sso.c b/src/mcd-account-manager-sso.c
index 0cf4e41e..68a4ba83 100644
--- a/src/mcd-account-manager-sso.c
+++ b/src/mcd-account-manager-sso.c
@@ -870,14 +870,13 @@ _ag_accountid_to_mc_key (McdAccountManagerSso *sso,
g_value_unset (&value);
return uid;
}
- else
+
+ if (!create)
{
g_value_unset (&value);
+ return NULL;
}
- if (!create)
- return NULL;
-
DEBUG ("no " MC_IDENTITY_KEY " found, synthesising one:");
src = _ag_account_global_value (account, AG_ACCOUNT_KEY, &value);