1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

util: make use of isempty() where appropriate

This commit is contained in:
Lennart Poettering 2014-11-06 21:11:10 +01:00
parent 4b5d8d0f22
commit 0c2576ef74

View File

@ -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;