From Changelog: Don't use uninitialized structs when ioctl() fails, e.g. if run with stdout redirected. Problem reported by Jan Stary.