mmap(): fix populate_len warning

This commit is contained in:
Balazs Gerofi
2017-05-24 01:41:28 +09:00
parent cadb66e5c1
commit 74c5f61fd5

View File

@ -1043,7 +1043,7 @@ do_mmap(const intptr_t addr0, const size_t len0, const int prot,
struct vm_regions *region = &thread->vm->region;
intptr_t addr = addr0;
size_t len = len0;
size_t populate_len;
size_t populate_len = 0;
off_t off;
int error;
intptr_t npages;