You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2017/04/04 22:30:27 UTC

[2/2] incubator-mynewt-core git commit: No jira ticket: fix uninitialized local variable.

No jira ticket: fix uninitialized local variable.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/79e45a56
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/79e45a56
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/79e45a56

Branch: refs/heads/develop
Commit: 79e45a56bb9f9f32604324760d275bc7cf75bdc2
Parents: 8b595e2
Author: William San Filippo <wi...@runtime.io>
Authored: Tue Apr 4 15:30:20 2017 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Tue Apr 4 15:30:20 2017 -0700

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/79e45a56/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c b/net/nimble/controller/src/ble_ll_ctrl.c
index 55f58e8..a933753 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -992,12 +992,12 @@ ble_ll_ctrl_rx_conn_update(struct ble_ll_conn_sm *connsm, uint8_t *dptr,
 
     /* XXX: validate them at some point. If they dont check out, we
        return the unknown response */
+    rsp_opcode = BLE_ERR_MAX;
 
     /* If instant is in the past, we have to end the connection */
     conn_events = (reqdata->instant - connsm->event_cntr) & 0xFFFF;
     if (conn_events >= 32767) {
         ble_ll_conn_timeout(connsm, BLE_ERR_INSTANT_PASSED);
-        rsp_opcode = BLE_ERR_MAX;
     } else {
         connsm->csmflags.cfbit.conn_update_sched = 1;
     }