summaryrefslogtreecommitdiff
path: root/pr
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2001-08-28 18:01:46 +0000
committerwtc%netscape.com <devnull@localhost>2001-08-28 18:01:46 +0000
commit44297deba2856d7aeb300d33a046012d9d07c893 (patch)
tree3591add9a846d9e6203143efee432b47c0d2783e /pr
parentd26b039fbad1eed556d1b9b576d966b3bec6ceab (diff)
downloadnspr-hg-44297deba2856d7aeb300d33a046012d9d07c893.tar.gz
Bugzilla bug 96673: removed the unnecessary and non-portable initializers
for the sigaction structure. Thanks rjesup@wgate.com (Randell Jesup) for suggesting the fix.
Diffstat (limited to 'pr')
-rw-r--r--pr/src/pthreads/ptthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c
index 59d11d83..c573fe3f 100644
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -1030,7 +1030,7 @@ static void init_pthread_gc_support()
PR_ASSERT(0 == rv);
#else /* defined(_PR_DCETHREADS) */
{
- struct sigaction sigact_usr2 = {0};
+ struct sigaction sigact_usr2;
sigact_usr2.sa_handler = suspend_signal_handler;
sigact_usr2.sa_flags = SA_RESTART;
@@ -1048,7 +1048,7 @@ static void init_pthread_gc_support()
}
#if defined(PT_NO_SIGTIMEDWAIT)
{
- struct sigaction sigact_null = {0};
+ struct sigaction sigact_null;
sigact_null.sa_handler = null_signal_handler;
sigact_null.sa_flags = SA_RESTART;
sigemptyset (&sigact_null.sa_mask);