summaryrefslogtreecommitdiffstats
path: root/src/login
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-09-25 13:36:54 +0200
committerDaniel Mack <daniel@zonque.org>2015-09-30 11:41:03 +0200
commit5cfee41459d54e13fd61238a0440cd4453421ed6 (patch)
tree1635065a8f9d9c0950aabef6fe37a50b91fb4494 /src/login
parentMerge pull request #1408 from poettering/systemctl-and-more (diff)
downloadsystemd-5cfee41459d54e13fd61238a0440cd4453421ed6.tar.xz
systemd-5cfee41459d54e13fd61238a0440cd4453421ed6.zip
tree-wide: use strempty() where possible
Also add a Coccinell patch to detect such locations in the future.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/sysfs-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/sysfs-show.c b/src/login/sysfs-show.c
index 9a9fb7622d..f38f06baf9 100644
--- a/src/login/sysfs-show.c
+++ b/src/login/sysfs-show.c
@@ -114,7 +114,7 @@ static int show_sysfs_one(
"%s%s:%s%s%s%s",
is_master ? "[MASTER] " : "",
subsystem, sysname,
- name ? " \"" : "", name ? name : "", name ? "\"" : "") < 0)
+ name ? " \"" : "", strempty(name), name ? "\"" : "") < 0)
return -ENOMEM;
free(k);