[Pkg-telepathy-commits] [telepathy-mission-control-6] 267/280: fixup! mc-tool: port to GVariant API

Simon McVittie smcv at debian.org
Thu Mar 27 20:07:32 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 8d4e15c8ed8d612048070df8f89ec14a781217f3
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Tue Feb 25 11:58:29 2014 +0100

    fixup! mc-tool: port to GVariant API
---
 util/mc-tool.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/util/mc-tool.c b/util/mc-tool.c
index ab473e7..e6da0b7 100644
--- a/util/mc-tool.c
+++ b/util/mc-tool.c
@@ -968,7 +968,8 @@ command_get (TpAccount *account)
           if (parameters == NULL)
             parameters = tp_account_dup_parameters(account);
 
-          if (!g_variant_lookup (parameters, getter->name, "v", &gvariant))
+          gvariant = g_variant_lookup_value (parameters, getter->name, NULL);
+          if (gvariant == NULL)
             {
               command.common.ret = 1;
               fprintf (stderr, "%s %s: param=%s: %s\n",
@@ -980,6 +981,7 @@ command_get (TpAccount *account)
           value = g_variant_print (gvariant, TRUE);
           puts(value);
           g_free(value);
+          g_variant_unref (gvariant);
         }
     }
 

-- 
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