diff options
Diffstat (limited to 'src/thread/pthread_barrierattr_setpshared.c')
-rw-r--r-- | src/thread/pthread_barrierattr_setpshared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/pthread_barrierattr_setpshared.c b/src/thread/pthread_barrierattr_setpshared.c index b391461e..c2d2929d 100644 --- a/src/thread/pthread_barrierattr_setpshared.c +++ b/src/thread/pthread_barrierattr_setpshared.c @@ -2,6 +2,7 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared) { + if (pshared > 1U) return EINVAL; a->__attr = pshared ? INT_MIN : 0; return 0; } |