From 0c2576ef74a9f9b96519cdcb7f9c01742d8255e2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Nov 2014 21:11:10 +0100 Subject: [PATCH] util: make use of isempty() where appropriate --- src/shared/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index 39ce46adb..dc1bc39ac 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; -- 2.30.2