udev: net_id - fix copy-paste error

In case pci_slot overflows we were truncating pci_path instead.
This commit is contained in:
Tom Gundersen 2015-04-01 16:41:41 +02:00
parent e6ac88ddf2
commit 16f948cb20
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
if (dev_port > 0)
l = strpcpyf(&s, l, "d%d", dev_port);
if (l == 0)
names->pci_path[0] = '\0';
names->pci_slot[0] = '\0';
}
out:
udev_device_unref(pci);