Use NULL instead of 0 for pointer in example.
MFC after: 3 days
This commit is contained in:
parent
e61cf728a6
commit
ee1046e859
@ -104,7 +104,7 @@ if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL)
|
||||
/* error return */
|
||||
sigstk.ss_size = SIGSTKSZ;
|
||||
sigstk.ss_flags = 0;
|
||||
if (sigaltstack(&sigstk,0) < 0)
|
||||
if (sigaltstack(&sigstk, NULL) < 0)
|
||||
perror("sigaltstack");
|
||||
.Ed
|
||||
An alternative approach is provided for programs with signal handlers
|
||||
|
Loading…
x
Reference in New Issue
Block a user