Skip to content
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

net: lwm2m: Fix unitialized variable error in Link Format writer #33842

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Mar 29, 2021

The init_string array could have been used uninitialized, fix this
by initializing it as an empty string, which is a desired content in
case it's not overwritten.

CID: 220302
Fixes #33839

Signed-off-by: Robert Lubos robert.lubos@nordicsemi.no

The `init_string` array could have been used uninitialized, fix this
by initializing it as an empty string, which is a desired content in
case it's not overwritten.

CID: 220302
Fixes zephyrproject-rtos#33839

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
@jukkar
Copy link
Member

jukkar commented Apr 13, 2021

ping @carlescufi

@MaureenHelm MaureenHelm merged commit 19e7451 into zephyrproject-rtos:master Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 220302] Uninitialized scalar variable in subsys/net/lib/lwm2m/lwm2m_rw_link_format.c
4 participants