From: Mike Yuan Date: Tue, 14 May 2024 07:49:21 +0000 (+0800) Subject: shared/bootspec: use isempty where appropriate X-Git-Tag: v256-rc2~17^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ea554e6816da2eb595f91bf4c61a7d6e32def52;p=thirdparty%2Fsystemd.git shared/bootspec: use isempty where appropriate --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 188613fb9ea..5bf34646572 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -787,7 +787,7 @@ static int find_cmdline_section( /* Quick test to check if there is actual content in the addon cmdline */ t = delete_chars(word, NULL); - if (t[0] == 0) + if (isempty(t)) *ret_cmdline = NULL; else *ret_cmdline = TAKE_PTR(cmdline);