summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2012-09-03 16:16:40 +0200
committerJiří Klimeš <jklimes@redhat.com>2012-09-03 16:18:54 +0200
commitddc3f727d039a39756b827e182645b51d26e4e52 (patch)
tree2ed098f38b529b4104f343f3c629bede5c0be6be
parentef4b0f1d77868aeb9cc46379e75923a831e227b4 (diff)
core: fix a regression causing that driver and firmware versions are not set
-rw-r--r--src/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-device.c b/src/nm-device.c
index 63e0dcfa..47dac720 100644
--- a/src/nm-device.c
+++ b/src/nm-device.c
@@ -384,10 +384,10 @@ device_get_driver_info (const char *iface, char **driver_version, char **firmwar
}
/* Get driver and firmware version info */
+ memset (&drvinfo, 0, sizeof (drvinfo));
memset (&req, 0, sizeof (struct ifreq));
strncpy (req.ifr_name, iface, IFNAMSIZ);
drvinfo.cmd = ETHTOOL_GDRVINFO;
- memset (&drvinfo, 0, sizeof (drvinfo));
req.ifr_data = &drvinfo;
errno = 0;