From 4ea554e6816da2eb595f91bf4c61a7d6e32def52 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 14 May 2024 15:49:21 +0800 Subject: [PATCH] shared/bootspec: use isempty where appropriate --- src/shared/bootspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3