From 3606d0f6ecf43da46cc7e703d2edba9d3aad88d5 Mon Sep 17 00:00:00 2001 From: anjiahao Date: Tue, 22 Feb 2022 11:21:24 +0800 Subject: [PATCH] modified ltp,rwlock need init Signed-off-by: anjiahao --- .../interfaces/pthread_rwlock_trywrlock/speculative/3-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/3-1.c index cc0d3a2966b..da1baa1effe 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/3-1.c @@ -23,7 +23,7 @@ int main(void) { - static pthread_rwlock_t rwlock; + static pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; int rc; /* Call without initializing rwlock */