diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-12-27 11:07:05 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:22:04 +0100 |
commit | cd3e6c9c614ca2521e4caa5edb1ec8962b2358ae (patch) | |
tree | 420d2e1a9a3fdb01af0b9e3fb64c5215bf20a44e /unit/util.c | |
parent | 74bb8e1474ba064f867140aa2e5b19769b94bc3b (diff) | |
download | bluez-cd3e6c9c614ca2521e4caa5edb1ec8962b2358ae.tar.gz |
gobex: add unit test for PUT request with SRM
Diffstat (limited to 'unit/util.c')
-rw-r--r-- | unit/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit/util.c b/unit/util.c index e8f202495..ad5a43877 100644 --- a/unit/util.c +++ b/unit/util.c @@ -166,7 +166,7 @@ gboolean test_io_cb(GIOChannel *io, GIOCondition cond, gpointer user_data) goto failed; } - if (send_buf_len == 0) + if ((gssize) send_buf_len < 0) goto failed; g_io_channel_write_chars(io, send_buf, send_buf_len, &bytes_written, |