From 4333c4a9e92f4da1f160805d9ff9d583b9359bd2 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Tue, 28 Aug 2001 18:01:46 +0000 Subject: [PATCH] Bugzilla bug 96673: removed the unnecessary and non-portable initializers for the sigaction structure. Thanks rjesup@wgate.com (Randell Jesup) for suggesting the fix. --- nsprpub/pr/src/pthreads/ptthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsprpub/pr/src/pthreads/ptthread.c b/nsprpub/pr/src/pthreads/ptthread.c index 59d11d834890..c573fe3f73dd 100644 --- a/nsprpub/pr/src/pthreads/ptthread.c +++ b/nsprpub/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);