diff options
author | greg@kroah.com <greg@kroah.com> | 2004-10-06 00:23:37 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:37:03 -0700 |
commit | 470c0ef2a6483d1b150d52319eb03b87f7744ea0 (patch) | |
tree | f50e314f10801c0ff02789ae9d2ef46dea377851 /dev_d.c | |
parent | 057f2bdbf65ba6276209869feb74097d73c06b99 (diff) |
[PATCH] be paranoid in dev_d.c
Diffstat (limited to 'dev_d.c')
-rw-r--r-- | dev_d.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |