chiark / gitweb /
shared: fix wrong assertion in barrier_set_role()
authorCristian Rodríguez <crrodriguez@opensuse.org>
Fri, 20 Feb 2015 18:14:56 +0000 (15:14 -0300)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 24 Feb 2015 17:30:59 +0000 (18:30 +0100)
commit3f7f1fad7621f584d9ce024abb313ecbc9bd0e62
treee6063588b533a89255b2da5fb8db2c5b54d133f7
parent43bbf1acc8202de895e5449828a7b863c69fcc2f
shared: fix wrong assertion in barrier_set_role()

 assert(b->pipe[0] >= 0 && b->pipe[0] >= 0);

Test the same condition twice, pretty sure we mean

 assert(b->pipe[0] >= 0 && b->pipe[1] >= 0);
src/shared/barrier.c