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/12/13 03:59:38 UTC
incubator-mynewt-core git commit: newtmgr - Fix crash with
'optimized' build!
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 0745ae6e7 -> 6cf018b5c
newtmgr - Fix crash with 'optimized' build!
I missed an asterisk.
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/6cf018b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/6cf018b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/6cf018b5
Branch: refs/heads/develop
Commit: 6cf018b5cc331fe14f59cae70073e2f830f82606
Parents: 0745ae6
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Dec 12 19:58:33 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Dec 12 19:58:33 2016 -0800
----------------------------------------------------------------------
mgmt/newtmgr/src/newtmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6cf018b5/mgmt/newtmgr/src/newtmgr.c
----------------------------------------------------------------------
diff --git a/mgmt/newtmgr/src/newtmgr.c b/mgmt/newtmgr/src/newtmgr.c
index ab62f0a..9e636a4 100644
--- a/mgmt/newtmgr/src/newtmgr.c
+++ b/mgmt/newtmgr/src/newtmgr.c
@@ -183,7 +183,7 @@ nmgr_rsp_tx(struct nmgr_transport *nt, struct os_mbuf **rsp, uint16_t mtu)
struct os_mbuf *frag;
int rc;
- while (rsp != NULL) {
+ while (*rsp != NULL) {
rc = nmgr_rsp_split_frag(rsp, mtu, &frag);
if (rc != 0) {
return rc;