Skip to content

Commit

Permalink
change memset to modern C++
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored and Nidhoegger committed Apr 27, 2024
1 parent cf52e63 commit 1ea7c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/sslclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void set_signal_handler(int signal)
struct sigaction sa;
sigaction(signal, nullptr, &sa);
if (sa.sa_flags == 0 && sa.sa_handler == nullptr) {
memset(&sa, 0, sizeof(sa));
sa = {};
sigaction(signal, &sa, nullptr);
}
}
Expand Down

0 comments on commit 1ea7c12

Please sign in to comment.