Permalink
Browse files

Fix undefined variable in pf.savefile

This is helpful for Snabb, which will error on a
variable like this.
  • Loading branch information...
takikawa committed Jan 30, 2017
1 parent 25289c5 commit d6a0f167881800871f736745837bece10edebd14
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/pf/savefile.lua
@@ -36,6 +36,7 @@ function size(fd)
end
function open_and_mmap(filename)
local O_RDONLY = 0
local fd = open(filename, O_RDONLY)
if fd == -1 then
error("Error opening " .. filename)

0 comments on commit d6a0f16

Please sign in to comment.