Fix: ensure mmap_base_offset is zeroed on initialization
[babeltrace.git] / formats / ctf / types / float.c
index 7a7c323afc674bf689596b95a28fd5f7a76a01ad..9ad4e602f0df705276ee45bbf92cfe7b154e921e 100644 (file)
@@ -163,6 +163,7 @@ int ctf_float_read(struct stream_pos *ppos, struct definition *definition)
                return -EINVAL;
        }
        tmpfloat = container_of(tmpdef, struct definition_float, p);
+       memset(&destp, 0, sizeof(destp));
        ctf_init_pos(&destp, -1, O_RDWR);
        mmap_align_set_addr(&mma, (char *) u.bits);
        destp.base_mma = &mma;
This page took 0.023076 seconds and 4 git commands to generate.