In case when update of current values is not necessary we still might end up
calling ioctl(), because need_update variable is not explicitly initialized.
{
struct ifreq ifr;
struct ethtool_cmd ecmd;
- bool need_update;
+ bool need_update = false;
int r;
if (speed == 0 && duplex == _DUP_INVALID)
int ethtool_set_wol(int fd, const char *ifname, WakeOnLan wol) {
struct ifreq ifr;
struct ethtool_wolinfo ecmd;
- bool need_update;
+ bool need_update = false;
int r;
if (wol == _WOL_INVALID)