1
0
Fork 0
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:
Yangfl 2021-11-25 14:05:57 +08:00 committed by Paul Wise
parent e1ac1fa655
commit 8563aa8636
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3

View file

@ -507,7 +507,8 @@ int main()
update();
{
struct sigaction s = {{actionWINCH}};
struct sigaction s = {0};
s.sa_handler = actionWINCH;
sigaction(SIGWINCH, &s, nullptr);
}