CID 1224581.
CID 1224582.
Remove dead conditional.

CID 1224560.
Fix uninitialized pointer fields.

CID 966482.
Use the proper type for `bool`.
Fix uninitialized scalar fields.

CID 752183 and CID 752184