From: Lennart Poettering Date: Tue, 2 Apr 2019 12:53:05 +0000 (+0200) Subject: udev: use strempty() where appropriate X-Git-Tag: v242-rc1~4^2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=568ee8fc468d139b87ce771098b11aa15086c30f udev: use strempty() where appropriate --- diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index c5d6feee7e1..ee87d7c65c7 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: