From 6c3590410a906412b0f88bc248a3cf82d247a4e8 Mon Sep 17 00:00:00 2001 From: Rafal Michalski Date: Thu, 4 Nov 2010 12:58:00 +0100 Subject: [PATCH] obexd: Fix status problem after pulling empty call history Problem with "OK" status after pulling phonebook for empty call history (cch) is fixed by this patch. Previously "OK" status was received even for empty (as it normally does for non-empty) call history and now "Not Found" status is received in case when there is no call event. --- obexd/plugins/pbap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c index 3ea7d6b3d..a40563c4b 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; } -- 2.47.3