Avoid unused variable on bsd

parent 27f4b714
......@@ -139,7 +139,6 @@ VJ_subproc(enum jail_subproc_e jse)
int
VJ_make_workdir(const char *dname)
{
struct statvfs vfs[1];
int i;
AN(dname);
......@@ -167,6 +166,8 @@ VJ_make_workdir(const char *dname)
dname, VAS_errtxt(errno));
#ifdef ST_NOEXEC
struct statvfs vfs[1];
/* deliberately ignore fstatvfs errors */
if (! fstatvfs(i, vfs) && vfs->f_flag & ST_NOEXEC) {
closefd(&i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment