mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: keep reference to the QByteArray object in Solid::Backends::UDev::NetworkInterface::isWireless()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0fc1865606
commit
aa0cc77a6a
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ bool NetworkInterface::isWireless() const
|
||||||
struct iwreq iwr;
|
struct iwreq iwr;
|
||||||
|
|
||||||
int ioctl_fd = socket (PF_INET, SOCK_DGRAM, 0);
|
int ioctl_fd = socket (PF_INET, SOCK_DGRAM, 0);
|
||||||
strncpy (iwr.ifr_ifrn.ifrn_name, ifaceName().toLatin1().constData(), IFNAMSIZ);
|
const QByteArray ifaceNameBytes = ifaceName().toLatin1();
|
||||||
|
strncpy (iwr.ifr_ifrn.ifrn_name, ifaceNameBytes.constData(), IFNAMSIZ);
|
||||||
|
|
||||||
QFileInfo phyDir(m_device->deviceName() + "/phy80211");
|
QFileInfo phyDir(m_device->deviceName() + "/phy80211");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue