Skip to content

Commit

Permalink
Fix: warning detected via ccc-analyzer
Browse files Browse the repository at this point in the history
Initialize strutct

Bug Summary
File:	src/processes.c
Warning:	line 251, column 15
Passed-by-value struct argument contains uninitialized data (e.g., field: 'pre_arg')
  • Loading branch information
jjnicola committed Oct 21, 2022
1 parent 8f0be39 commit 58747a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processes.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pid_t
create_ipc_process (ipc_process_func func, void *args)
{
struct ipc_context *pctx = NULL;
struct ipc_exec_context ec;
struct ipc_exec_context ec = {0};
pid_t child_pid;
// previously init call, we want to store the contexts without making
// assumptions about signal handlung
Expand Down

0 comments on commit 58747a9

Please sign in to comment.