diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-06 21:11:10 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-07 01:19:56 +0100 |
commit | 0c2576ef74a9f9b96519cdcb7f9c01742d8255e2 (patch) | |
tree | 1b3ba89c19e9f64cece77855396b92fa57aa8743 /src/shared/util.c | |
parent | 4b5d8d0f22ae61ceb45a25391354ba53b43ee992 (diff) |
util: make use of isempty() where appropriate
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 39ce46adb4..dc1bc39ac7 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -695,7 +695,7 @@ int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char * } /* Kernel threads have no argv[] */ - if (r == NULL || r[0] == 0) { + if (isempty(r)) { _cleanup_free_ char *t = NULL; int h; |