Skip to content

bluetooth: shell: Uninitialized scalar variables #10738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2018

Conversation

satyacube
Copy link
Contributor

Initialize variables scan_rsp_len and chan_map in bt.c
Coverity-CID: 188735
Coverity-CID: 188729

Fixes #10588 #10594

Signed-off-by: Satya Bhattacharya [email protected]

@codecov-io
Copy link

codecov-io commented Oct 20, 2018

Codecov Report

Merging #10738 into master will decrease coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10738      +/-   ##
==========================================
- Coverage   53.26%   53.13%   -0.14%     
==========================================
  Files         215      215              
  Lines       25827    25827              
  Branches     5695     5695              
==========================================
- Hits        13758    13724      -34     
- Misses       9753     9793      +40     
+ Partials     2316     2310       -6
Impacted Files Coverage Δ
include/posix/posix_sched.h 0% <0%> (-100%) ⬇️
lib/posix/pthread_barrier.c 0% <0%> (-100%) ⬇️
lib/posix/pthread_cond.c 62.5% <0%> (-20.84%) ⬇️
lib/posix/pthread.c 68.03% <0%> (-12.33%) ⬇️
lib/posix/pthread_mutex.c 76.38% <0%> (-1.39%) ⬇️
subsys/logging/log_output.c 83.33% <0%> (+1.19%) ⬆️
subsys/logging/log_core.c 78.4% <0%> (+2.34%) ⬆️
lib/posix/pthread_sched.c 62.5% <0%> (+20.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c229126...9865e07. Read the comment docs.

Initialize variables chan_map in bt.c
Pass NULL and 0 directly to bt_le_adv_start()
Coverity-CID: 188735
Coverity-CID: 188729

Fixes zephyrproject-rtos#10588 zephyrproject-rtos#10594

Signed-off-by: Satya Bhattacharya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants