mirror of
https://github.com/otakuto/crazydiskinfo.git
synced 2025-08-08 07:03:22 +00:00
Initialise sigaction separately to sa_handler member
The sa_handler member is the first member on most platforms but is not the first on MIPS. Fixes: https://bugs.debian.org/987829
This commit is contained in:
parent
e1ac1fa655
commit
8563aa8636
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
@ -507,7 +507,8 @@ int main()
|
|||
update();
|
||||
|
||||
{
|
||||
struct sigaction s = {{actionWINCH}};
|
||||
struct sigaction s = {0};
|
||||
s.sa_handler = actionWINCH;
|
||||
sigaction(SIGWINCH, &s, nullptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue