Skip to content

Commit

Permalink
lib.interlink: fix initialization race.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Aug 4, 2017
1 parent ac886ba commit 06053f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/interlink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function create (name)
end

function init (r) -- initialization must be performed by consumer
assert(full(r) and empty(r)) -- only satisfied if uninitialized
assert(r.packets[0] == ffi.new("void *")) -- only satisfied if uninitialized
for i = 0, link.max do
r.packets[i] = packet.allocate()
end
Expand Down

0 comments on commit 06053f6

Please sign in to comment.