mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04: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)
|
||||
return snd_config_get_ascii(n, ret);
|
||||
lval = llval;
|
||||
} else {
|
||||
lval = 0;
|
||||
}
|
||||
err = tplg_nice_value_format(buf, sizeof(buf), (unsigned int)lval);
|
||||
if (err < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue