Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1337688756-1938-1-git-send-email-mikel.astiz.oss@gmail.com> Date: Tue, 22 May 2012 15:28:40 +0300 Message-ID: Subject: Re: [PATCH BlueZ v0] gdbus: Fix incorrectly discarded signals From: Luiz Augusto von Dentz To: Lucas De Marchi Cc: Mikel Astiz , linux-bluetooth@vger.kernel.org, Mikel Astiz Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Mikel, Lucas, On Tue, May 22, 2012 at 3:21 PM, Lucas De Marchi wrote: >> diff --git a/gdbus/object.c b/gdbus/object.c >> index 2dd7c0e..c33df57 100644 >> --- a/gdbus/object.c >> +++ b/gdbus/object.c >> @@ -616,7 +616,7 @@ static gboolean check_signal(DBusConnection *conn, const char *path, >> ? ? ? ? ? ? ? ?} >> ? ? ? ?} >> >> - ? ? ? if (*args == NULL) { >> + ? ? ? if (!signal || !signal->name) { >> ? ? ? ? ? ? ? ?error("No signal named %s on interface %s", name, interface); >> ? ? ? ? ? ? ? ?return FALSE; >> ? ? ? ?} > > > Ack. > Any reason why the code does not return TRUE within the for loop? I think it would have been simpler that way. -- Luiz Augusto von Dentz