chiark / gitweb /
[PATCH] be paranoid in dev_d.c
authorgreg@kroah.com <greg@kroah.com>
Wed, 6 Oct 2004 07:23:37 +0000 (00:23 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:37:03 +0000 (21:37 -0700)
dev_d.c

diff --git a/dev_d.c b/dev_d.c
index 1ad599e..e6081b3 100644 (file)
--- 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);