summaryrefslogtreecommitdiff
path: root/tests/twisted
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-13 17:48:41 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-13 19:38:11 +0000
commit890cb5b5c2dc40762e28bac39379d9ed8f0f973f (patch)
tree3adef6efa9d27bfce9961966ff240a9340c57e77 /tests/twisted
parentdd01f79b20f160fcffe2fd7acd7dffd71c368797 (diff)
Fix addition of restrictions to test accounts
Account.restrictions wasn't initialized properly, so it would sometimes be nonzero, leading to mysterious test failures. Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71390
Diffstat (limited to 'tests/twisted')
-rw-r--r--tests/twisted/dbus-account-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/twisted/dbus-account-plugin.c b/tests/twisted/dbus-account-plugin.c
index 3cf29ca1..a8a2e4df 100644
--- a/tests/twisted/dbus-account-plugin.c
+++ b/tests/twisted/dbus-account-plugin.c
@@ -158,7 +158,7 @@ ensure_account (TestDBusAccountPlugin *self,
if (account == NULL)
{
- account = g_slice_new (Account);
+ account = g_slice_new0 (Account);
account->path = g_strdup_printf ("%s%s", TP_ACCOUNT_OBJECT_PATH_BASE,
account_name);