[Pkg-telepathy-commits] [telepathy-mission-control-6] 131/280: Fix addition of restrictions to test accounts

Simon McVittie smcv at debian.org
Thu Mar 27 20:07:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.

commit 890cb5b5c2dc40762e28bac39379d9ed8f0f973f
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Nov 13 17:48:41 2013 +0000

    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 at collabora.co.uk>
    Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71390
---
 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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git



More information about the Pkg-telepathy-commits mailing list