You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/09 03:51:31 UTC
incubator-mynewt-larva git commit: Fix compiler warning.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master 5b6d4bb03 -> fddefd81e
Fix compiler warning.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/fddefd81
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/fddefd81
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/fddefd81
Branch: refs/heads/master
Commit: fddefd81edbf60a3a60476bf6ce54f0bf56ce347
Parents: 5b6d4bb
Author: Christopher Collins <cc...@gmail.com>
Authored: Fri Jan 8 18:51:21 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Fri Jan 8 18:51:21 2016 -0800
----------------------------------------------------------------------
net/nimble/host/src/ble_att_svr.c | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/fddefd81/net/nimble/host/src/ble_att_svr.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_att_svr.c b/net/nimble/host/src/ble_att_svr.c
index e1930f4..8261f10 100644
--- a/net/nimble/host/src/ble_att_svr.c
+++ b/net/nimble/host/src/ble_att_svr.c
@@ -1614,6 +1614,8 @@ ble_att_svr_rx_read_mult(struct ble_hs_conn *conn, struct ble_l2cap_chan *chan,
uint8_t att_err;
int rc;
+ err_handle = 0; /* Silence warning. */
+
*rxom = os_mbuf_pullup(*rxom, OS_MBUF_PKTLEN(*rxom));
if (*rxom == NULL) {
att_err = BLE_ATT_ERR_INSUFFICIENT_RES;