Skip to content

Commit

Permalink
fix: 'flags' may be used uninitialized warning
Browse files Browse the repository at this point in the history
initialize a local variable to avoid compilation warning

Signed-off-by: Marcin Szkudlinski <[email protected]>
  • Loading branch information
marcinszkudlinski committed Jul 4, 2024
1 parent d060b70 commit 8b1dad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ int ipc_comp_connect(struct ipc *ipc, ipc_pipe_comp_connect *_connect)
struct comp_dev *sink;
struct ipc4_base_module_cfg source_src_cfg;
struct ipc4_base_module_cfg sink_src_cfg;
uint32_t flags;
uint32_t flags = 0;
uint32_t ibs = 0;
uint32_t obs = 0;
uint32_t buf_size;
Expand Down

0 comments on commit 8b1dad0

Please sign in to comment.