Diff between b58862b284ec04d21a23c979f870008d1938032e and 6c3590410a906412b0f88bc248a3cf82d247a4e8

Changed Files

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

Full Patch

diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 3ea7d6b..a40563c 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -251,7 +251,7 @@ static void query_result(const char *buffer, size_t bufsize, int vcards,
 
 	DBG("");
 
-	if (vcards < 0) {
+	if (vcards <= 0) {
 		obex_object_set_io_flags(pbap, G_IO_ERR, -ENOENT);
 		return;
 	}