diff options
Diffstat (limited to 'src/thread/pthread_rwlockattr_init.c')
-rw-r--r-- | src/thread/pthread_rwlockattr_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_rwlockattr_init.c b/src/thread/pthread_rwlockattr_init.c index e0893d67..e7420694 100644 --- a/src/thread/pthread_rwlockattr_init.c +++ b/src/thread/pthread_rwlockattr_init.c @@ -2,6 +2,6 @@ int pthread_rwlockattr_init(pthread_rwlockattr_t *a) { - memset(a, 0, sizeof *a); + *a = (pthread_rwlockattr_t){0}; return 0; } |