spa: small cleanups

Initialize result variable.
Use strncpy to avoid warnings about using non-NULL terminaded strings.
This commit is contained in:
Wim Taymans 2024-01-10 15:51:01 +01:00
parent 15908328d1
commit d0a2e6316b
7 changed files with 9 additions and 9 deletions

View file

@ -557,7 +557,7 @@ impl_node_port_set_param(void *object,
{
struct state *this = object;
struct port *port;
int res;
int res = 0;
spa_return_val_if_fail(this != NULL, -EINVAL);

View file

@ -557,7 +557,7 @@ impl_node_port_set_param(void *object,
{
struct state *this = object;
struct port *port;
int res;
int res = 0;
spa_return_val_if_fail(this != NULL, -EINVAL);