Support memsz 0 for minimum

parent a07b0563
......@@ -1413,7 +1413,8 @@ sfe_init(struct stevedore *memstv, enum stvfe_scope scope,
assert(scope > STVFE_INVAL);
AN(filename);
AN(dsksz);
AN(memsz);
if (memsz == 0)
memsz = 1;
AN(objsize_hint);
err = sfe_tryopen(filename);
......
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