Skip to content

Commit

Permalink
πŸ› fix uninitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
froz42 committed Oct 11, 2023
1 parent 20525d8 commit cb0b079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcs/signals/signals_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
void signals_block(void)
{
sigset_t blocked;
sigset_t blocked = {0};
int to_block[] = {SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGTERM};

for (size_t i = 0; i < ELEM_COUNT(to_block); i++)
Expand Down

0 comments on commit cb0b079

Please sign in to comment.