mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: crashhandler: fully initialize struct sigaction
This commit is contained in:
parent
aac0be1ab3
commit
be084d5603
@ -440,7 +440,7 @@ static void Sys_Crash( int signal, siginfo_t *si, void *context)
|
|||||||
|
|
||||||
void Sys_SetupCrashHandler( void )
|
void Sys_SetupCrashHandler( void )
|
||||||
{
|
{
|
||||||
struct sigaction act;
|
struct sigaction act = { 0 };
|
||||||
act.sa_sigaction = Sys_Crash;
|
act.sa_sigaction = Sys_Crash;
|
||||||
act.sa_flags = SA_SIGINFO | SA_ONSTACK;
|
act.sa_flags = SA_SIGINFO | SA_ONSTACK;
|
||||||
sigaction( SIGSEGV, &act, &oldFilter );
|
sigaction( SIGSEGV, &act, &oldFilter );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user