commit | 1112cab34145a0dc88d32ea5f45dd057c04c0aca | [log] [tgz] |
---|---|---|
author | thughes <thughes@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Nov 16 12:08:45 2004 +0000 |
committer | thughes <thughes@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Nov 16 12:08:45 2004 +0000 |
tree | a2a9a400af9c09e8d4c97acdce28578ffe630c0d | |
parent | af6921a4b98e653fa329a274f02183917a4d07aa [diff] |
Don't try and return the old mask from sigprocmask if the user gave a null pointer for that argument. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3020 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index b9d88fe..15f4307 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c
@@ -5944,7 +5944,8 @@ &bigger_set, &bigger_oldset ); - *oldset = bigger_oldset.sig[0]; + if (oldset) + *oldset = bigger_oldset.sig[0]; } }