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