diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index c5d6feee7e..ee87d7c65c 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1645,8 +1645,7 @@ static bool match_key(UdevRules *rules, struct token *token, const char *val) { char *pos; bool match = false; - if (!val) - val = ""; + val = strempty(val); switch (token->key.glob) { case GL_PLAIN: