mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-23 01:40:06 -05:00
topology: tplg_pprint_integer() fix coverity uninitalized variable error
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
437b5b3aae
commit
d0bb8f84c9
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ static int tplg_pprint_integer(snd_config_t *n, char **ret)
|
||||||
if (llval < INT_MIN || llval > UINT_MAX)
|
if (llval < INT_MIN || llval > UINT_MAX)
|
||||||
return snd_config_get_ascii(n, ret);
|
return snd_config_get_ascii(n, ret);
|
||||||
lval = llval;
|
lval = llval;
|
||||||
|
} else {
|
||||||
|
lval = 0;
|
||||||
}
|
}
|
||||||
err = tplg_nice_value_format(buf, sizeof(buf), (unsigned int)lval);
|
err = tplg_nice_value_format(buf, sizeof(buf), (unsigned int)lval);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue