projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02dab76
)
udev: use strempty() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Tue, 2 Apr 2019 12:53:05 +0000
(14:53 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 2 Apr 2019 12:54:42 +0000
(14:54 +0200)
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index
c5d6fee
..
ee87d7c
100644
(file)
--- 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: