mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
spa: small cleanups
Use snprint to ensure null terminated strings. Initialize res, it would be uninitialized when setting a NULL Latency param.
This commit is contained in:
parent
70ffbaed74
commit
c7519c73ac
2 changed files with 3 additions and 2 deletions
|
|
@ -677,7 +677,7 @@ impl_node_port_set_param(void *object,
|
|||
{
|
||||
struct seq_state *this = object;
|
||||
struct seq_port *port;
|
||||
int res;
|
||||
int res = 0;
|
||||
|
||||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue