chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] PATCH some cleanups and security fixes
[elogind.git]
/
dev_d.c
diff --git
a/dev_d.c
b/dev_d.c
index 1ad599ead58a8bbcc65316b318d34bcacd131569..e6081b3993fe6b75696b50aa0b40637ebb003f67 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);