libthr: 'count' is unsigned so don't check for negative values.

Obtained from:	DragonFlyBSD (git e7db8139)
This commit is contained in:
pfg 2017-07-14 16:05:54 +00:00
parent 1daf6d39a8
commit c3bb00fcff

View File

@ -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 ||