chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: make use of isempty() where appropriate
[elogind.git]
/
src
/
shared
/
util.c
diff --git
a/src/shared/util.c
b/src/shared/util.c
index 39ce46adb4dd19c10d5522f0c61e6271c5ff0426..dc1bc39ac710b50f4f52cd171674bd053d3b20ae 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;