From fe04f8d64a0f88aa716d494cf75cde3bd9e0d8ec Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 13 Nov 2013 17:48:41 +0000 Subject: [PATCH] Fix addition of restrictions to test accounts Account.restrictions wasn't initialized properly, so it would sometimes be nonzero, leading to mysterious test failures. --- tests/twisted/dbus-account-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/twisted/dbus-account-plugin.c b/tests/twisted/dbus-account-plugin.c index 3cf29ca..a8a2e4d 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); -- 1.8.4.3