You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/11 18:33:17 UTC
incubator-mynewt-larva git commit: Possibly uninitialized variable.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master fddefd81e -> 05e4b4d6f
Possibly uninitialized variable.
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/05e4b4d6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/05e4b4d6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/05e4b4d6
Branch: refs/heads/master
Commit: 05e4b4d6f5ad9438ec05acbfb48a0f0948953fe6
Parents: fddefd8
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Jan 11 09:33:01 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Jan 11 09:33:01 2016 -0800
----------------------------------------------------------------------
libs/imgmgr/src/imgmgr.c | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/05e4b4d6/libs/imgmgr/src/imgmgr.c
----------------------------------------------------------------------
diff --git a/libs/imgmgr/src/imgmgr.c b/libs/imgmgr/src/imgmgr.c
index ea13460..0fcd21e 100644
--- a/libs/imgmgr/src/imgmgr.c
+++ b/libs/imgmgr/src/imgmgr.c
@@ -149,6 +149,7 @@ imgr_upload(struct nmgr_hdr *nmr, struct os_mbuf *req, uint16_t srcoff,
*/
img_state.upload.off = 0;
active = bsp_imgr_current_slot();
+ best = -1;
for (i = FLASH_AREA_IMAGE_0; i <= FLASH_AREA_IMAGE_1; i++) {
rc = imgr_read_ver(i, &ver);