Skip to content

Commit

Permalink
Fix status problem after pulling empty call history
Browse files Browse the repository at this point in the 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.
  • Loading branch information
michalskir authored and Johan Hedberg committed Nov 4, 2010
1 parent 569d70f commit ac3df8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pbap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac3df8c

Please sign in to comment.