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:
4b5d8d0
)
util: make use of isempty() where appropriate
author
Lennart Poettering
<lennart@poettering.net>
Thu, 6 Nov 2014 20:11:10 +0000
(21:11 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 7 Nov 2014 00:19:56 +0000
(
01:19
+0100)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
39ce46a
..
dc1bc39
100644
(file)
--- 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;