From 470c0ef2a6483d1b150d52319eb03b87f7744ea0 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 6 Oct 2004 00:23:37 -0700 Subject: [PATCH] be paranoid in dev_d.c --- dev_d.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-54-g00ecf