Hi Mikel, On Mon, Feb 13, 2012 at 4:39 PM, Mikel Astiz <mikel.astiz.oss@xxxxxxxxx> wrote: > From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> > > Previous statement always returned success. > --- > client/pbap.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/client/pbap.c b/client/pbap.c > index 4910536..c58557d 100644 > --- a/client/pbap.c > +++ b/client/pbap.c > @@ -301,7 +301,7 @@ static gboolean pbap_setpath(struct pbap_data *pbap, const char *location, > } > > obc_session_setpath(pbap->session, path, pbap_setpath_cb, pbap, err); > - if (err != NULL) { > + if (*err == NULL) { > g_free(pbap->path); > pbap->path = path; > return TRUE; > -- > 1.7.6.5 Nice catch, ack. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html