mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
[PATCH] be paranoid in dev_d.c
This commit is contained in:
parent
057f2bdbf6
commit
470c0ef2a6
1
dev_d.c
1
dev_d.c
@ -71,6 +71,7 @@ void dev_d_send(struct udevice *dev, const char *subsystem, const char *devpath)
|
||||
if (udev_dev_d == 0)
|
||||
return;
|
||||
|
||||
memset(env_devname, 0x00, sizeof(env_devname));
|
||||
if (dev->type == 'b' || dev->type == 'c') {
|
||||
strfieldcpy(env_devname, udev_root);
|
||||
strfieldcat(env_devname, dev->name);
|
||||
|
Loading…
Reference in New Issue
Block a user