summaryrefslogtreecommitdiff
path: root/src/notify
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-12-15 16:36:35 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-12-19 10:43:57 +0900
commit586290017d09a1081bfcd328098022a933d40888 (patch)
tree2b82583181bd2f5939709e80b6831c721397a1a2 /src/notify
parentbf0e0a4df2d41a5631811f7db6b6c1c866c3ed80 (diff)
downloadsystemd-586290017d09a1081bfcd328098022a933d40888.tar.gz
tree-wide: use !strv_isempty() instead of strv_length() > 0
Diffstat (limited to 'src/notify')
-rw-r--r--src/notify/notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notify/notify.c b/src/notify/notify.c
index 3e511b7e47..4a34e1e9db 100644
--- a/src/notify/notify.c
+++ b/src/notify/notify.c
@@ -179,7 +179,7 @@ int main(int argc, char* argv[]) {
goto finish;
}
- if (strv_length(final_env) <= 0) {
+ if (strv_isempty(final_env)) {
r = 0;
goto finish;
}