summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-10-06 00:23:37 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:03 -0700
commit470c0ef2a6483d1b150d52319eb03b87f7744ea0 (patch)
treef50e314f10801c0ff02789ae9d2ef46dea377851
parent057f2bdbf65ba6276209869feb74097d73c06b99 (diff)
[PATCH] be paranoid in dev_d.c
-rw-r--r--dev_d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev_d.c b/dev_d.c
index 1ad599ead5..e6081b3993 100644
--- a/dev_d.c
+++ b/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);