libthr: 'count' is unsigned so don't check for negative values.
Obtained from: DragonFlyBSD (git e7db8139)
This commit is contained in:
parent
1daf6d39a8
commit
c3bb00fcff
@ -100,7 +100,7 @@ _pthread_barrier_init(pthread_barrier_t *barrier,
|
||||
pthread_barrier_t bar;
|
||||
int pshared;
|
||||
|
||||
if (barrier == NULL || count <= 0)
|
||||
if (barrier == NULL || count == 0)
|
||||
return (EINVAL);
|
||||
|
||||
if (attr == NULL || *attr == NULL ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user