Diff between 78c43051dac7aee0d1c290bba8d11d954cb2db46 and 784f61bd0fdffe87364012bc3ba0e9a660c3a5e8

Changed Files

File Additions Deletions Status
obexd/plugins/pbap.c +2 -2 modified

Full Patch

diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 7429f23..579995e 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -164,8 +164,8 @@ static gpointer pbap_connect(struct obex_session *os, int *err)
 	pbap->folder = g_strdup("/");
 	pbap->os = os;
 
-	if (*err)
-		err = 0;
+	if (err)
+		*err = 0;
 
 	return pbap;
 }