Commit fd85b194 authored by Pavel Emelyanov's avatar Pavel Emelyanov

dump: Init mmap's file pos

It's unused, but makes show command show 0, not trash.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2ea781a9
......@@ -739,6 +739,7 @@ static int dump_filemap(pid_t pid, struct vma_entry *vma, int file_fd,
}
p.type = FDINFO_REG;
p.pos = 0;
p.fown = (fown_t){ };
if ((vma->prot & PROT_WRITE) && vma_entry_is(vma, VMA_FILE_SHARED))
p.flags = O_RDWR;
......
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