summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-add.c b/udev-add.c
index ba5c864165..2f72613ea9 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -193,7 +193,7 @@ static int create_node(struct udevice *dev)
symlinks = dev->symlink;
while (1) {
linkname = strsep(&symlinks, " ");
- if (linkname == NULL)
+ if (linkname == NULL || linkname[0] == '\0')
break;
strncpy(filename, udev_root, sizeof(filename));