aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus.c b/src/bus.c
index 7609de6..3205e25 100644
--- a/src/bus.c
+++ b/src/bus.c
@@ -262,9 +262,9 @@ create_semaphores(bus_t *bus)
/* Initialise the array. */
values.array = calloc((size_t)BUS_SEMAPHORES, sizeof(unsigned short));
- values.array[X] = 1;
if (!values.array)
goto fail;
+ values.array[X] = 1;
if (semctl(id, 0, SETALL, values.array) == -1)
goto fail;
free(values.array);