OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7809d9
)
gobex: Don't call consumer callback if there is no data
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 6 Jul 2011 14:21:52 +0000
(17:21 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 4 Dec 2012 21:22:00 +0000
(22:22 +0100)
gobex/gobex-transfer.c
patch
|
blob
|
history
diff --git
a/gobex/gobex-transfer.c
b/gobex/gobex-transfer.c
index
9b2fac8
..
5c560d0
100644
(file)
--- a/
gobex/gobex-transfer.c
+++ b/
gobex/gobex-transfer.c
@@
-227,7
+227,8
@@
static void transfer_put_req(GObex *obex, GObexPacket *req, gpointer user_data)
g_obex_header_get_bytes(body, &buf, &len);
- transfer->data_consumer(buf, len, transfer->user_data);
+ if (len > 0)
+ transfer->data_consumer(buf, len, transfer->user_data);
}
rsp = g_obex_packet_new(rspcode, TRUE, NULL);