mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 23:21:22 +03:00
udev: use strempty() where appropriate
This commit is contained in:
parent
02dab76e93
commit
568ee8fc46
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user