fixed uninitialized variables when ioctl() on the given interfaces