diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-10-28 15:24:48 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-10-30 10:27:20 +0100 |
commit | e26d17b5b761b09bef13c736d5b4088ec32f2195 (patch) | |
tree | 09ff1bf0868461c6bb1ad512f06fd3ebd946b019 /unit/test-hfp.c | |
parent | 6fd40a38287421b2a42a558121439be901176c76 (diff) | |
download | bluez-e26d17b5b761b09bef13c736d5b4088ec32f2195.tar.gz |
unit/test-hfp: Fix wrong check
Diffstat (limited to 'unit/test-hfp.c')
-rw-r--r-- | unit/test-hfp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/unit/test-hfp.c b/unit/test-hfp.c index 24ea402bc..c11a42442 100644 --- a/unit/test-hfp.c +++ b/unit/test-hfp.c @@ -154,8 +154,7 @@ static gboolean send_pdu(gpointer user_data) ssize_t len; pdu = &context->data->pdu_list[context->pdu_offset++]; - - if (pdu && !pdu->valid) + if (!pdu || !pdu->valid) return FALSE; len = write(context->fd_server, pdu->data, pdu->size); |