lib: os: cbprintf: Fix variable assignment
When in_len is 0 then length is calculated from the package and assignment was missing. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
8c2a732067
commit
4b4c5bfcee
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ int cbprintf_package_convert(void *in_packaged,
|
||||||
bool ro_cpy;
|
bool ro_cpy;
|
||||||
struct z_cbprintf_desc *in_desc = in_packaged;
|
struct z_cbprintf_desc *in_desc = in_packaged;
|
||||||
|
|
||||||
in_len != 0 ? in_len : get_package_len(in_packaged);
|
in_len = in_len != 0 ? in_len : get_package_len(in_packaged);
|
||||||
|
|
||||||
/* Get number of RO string indexes in the package and check if copying
|
/* Get number of RO string indexes in the package and check if copying
|
||||||
* includes appending those strings.
|
* includes appending those strings.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue