diff options
author | Daniel Mack <daniel@zonque.org> | 2015-09-25 13:36:54 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-09-30 11:41:03 +0200 |
commit | 5cfee41459d54e13fd61238a0440cd4453421ed6 (patch) | |
tree | 1635065a8f9d9c0950aabef6fe37a50b91fb4494 /src/login | |
parent | 2ea69f8d5e4a83397c5050914adf6452cafa9559 (diff) |
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.c | 2 |
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); |