From 470c0ef2a6483d1b150d52319eb03b87f7744ea0 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 6 Oct 2004 00:23:37 -0700 Subject: [PATCH] [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 1ad599ea..e6081b39 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); -- 2.39.5