summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);