Use NULL instead of 0 for pointer in example.
MFC after: 3 days
This commit is contained in:
parent
3b8199dbfc
commit
da881cad07
@ -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…
Reference in New Issue
Block a user