diff options
-rw-r--r-- | src/udev/udevadm-hwdb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c index 6bc108783..53b1b15c7 100644 --- a/src/udev/udevadm-hwdb.c +++ b/src/udev/udevadm-hwdb.c @@ -441,9 +441,8 @@ static int insert_data(struct trie *trie, struct udev_list *match_list, while (isblank(line[0]) && isblank(line[1])) line++; - if (isempty(line + 1) || isempty(value)) { - log_error("Warning, empty %s in \"%s=%s\", ignoring", - isempty(line + 1) ? "key" : "value", + if (isempty(line + 1)) { + log_error("Warning, empty key in \"%s=%s\", ignoring", line, value); return -EINVAL; } |