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