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