Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1485700pxb; Wed, 30 Mar 2022 04:49:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2pfAp12eWP2y/mJTbxKlFkGeMBNZQKrl+Q8Dy2NmrvR1xmLRmn6YuKhLPjtw2ldhd2E80 X-Received: by 2002:a17:902:f68e:b0:154:6518:69ba with SMTP id l14-20020a170902f68e00b00154651869bamr35461330plg.60.1648640978288; Wed, 30 Mar 2022 04:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648640978; cv=none; d=google.com; s=arc-20160816; b=Gp8CTGKP6DC32uIb0NdmdJDn1QeBndqZYRoGD3Ze/4GU9W6SGYrjSJr+LXdYyIRBEF t0MMO6ByfUT/K15jeVgrwIxzVnVCPRNhnJK2FztMFbWwmxzoTo1fHevCSYrvtu4kEqbn KqIXUlz2YmzSPrLuj9H3OpwE/t84rkgFmGu2rZAORwvtu7FIr45uwHUGElXBQ+g7nl6X P8nwXCZvW6C98lXCBHNxjgYIxrnysSNeojf5bj6obSkSEKyPdyDpHgnVsXOEhGJYh2dv k+YTPqhg6H3D4pH9QTemdee1rkLzj+3eCVi1OLlgNgWX1+p/1INKUtB3Y7YlA76mFGr5 yYIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=1+qV8QmH/So9bkjr0D1YsEOTCasrW5qmhr3Yq8gaeok=; b=XWhpN0nOx29J6JzzLiTfQxparQLnrQfOpIoLya2zMfYp/oIQTZiemQ5z4yGxIZozu0 dqT03LNEsnrFJvC93JF/3OJeCEkyoRVmagvSOnSiKUKNahW3zvkJL8EWjX23MHCqxXSO qMePgaO60LahjVRSS9VhWoYQnyhQCIT2CgG/xWbErwQaFlBIePSQP36EZvmWcLSGRnSY W6ydmltp8HUj4YaRs915G1s1KfbO5ggP6mVHYs/Ami12p9IOiLrYfhP/E5SdbasrLJ88 MBfVgyysCCQN1quJKLuNI5UR3MSEAzE0h2PD0WQmaaBAmcLVuVzfe5Cfd9ebfMh7d3b+ lfDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j0sxmP7m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170902d50100b00153b2d16561si22303136plg.361.2022.03.30.04.49.01; Wed, 30 Mar 2022 04:49:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j0sxmP7m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241019AbiC3Jti (ORCPT + 99 others); Wed, 30 Mar 2022 05:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234704AbiC3Jth (ORCPT ); Wed, 30 Mar 2022 05:49:37 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DA3266B49 for ; Wed, 30 Mar 2022 02:47:53 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: fdanis) with ESMTPSA id EDF271F44576 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1648633667; bh=9wHPtAXUfRoA+BKZLI7PWdiZexsJOtzcFoxk2awKnwI=; h=From:To:Subject:Date:From; b=j0sxmP7mrZboG4VfBF/AoTGOjVwVKR82+eFbcORyvENQ9PGkA3WtPSbGn7kf8Wqf5 z+DtTogfvRoopYP3eVOmH9Mvrbe7xcjtNk5i/RZijaEK/EaW8g1REzntrpNehiVo93 +L51JjvCuLWYi4rT5E0TSp4/vgi4gmB4eY0qqHrt0/L/3j9OhbfkeJwL/XLetGWqU1 on2HCNtW47LA2jWZ6nJBfjyKNhl9oJ/EL9QAbHjq5wX7a6Aa/OaN+5jXmqrzliTN2t I4+Mp0ZCjUaOYdgw7mkkKSemU/hKdPGDBEq+ka0UH8Mv2G0wNmzMEPbVLhRjVLgrPm H+NP+uo5iMTww== From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] tools: Fix g_dbus_setup_private connection check in mpris-proxy Date: Wed, 30 Mar 2022 11:47:40 +0200 Message-Id: <20220330094740.45637-1-frederic.danis@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- tools/mpris-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpris-proxy.c b/tools/mpris-proxy.c index 91a25501d..3779b6887 100644 --- a/tools/mpris-proxy.c +++ b/tools/mpris-proxy.c @@ -1978,7 +1978,7 @@ static void register_player(GDBusProxy *proxy) player->conn = g_dbus_setup_private(DBUS_BUS_SESSION, player->bus_name, NULL); - if (!session) { + if (!player->conn) { fprintf(stderr, "Could not register bus name %s", player->bus_name); goto fail; -- 2.25.1