shared/bootspec: use isempty where appropriate

This commit is contained in:
Mike Yuan
2024-05-14 15:49:21 +08:00
parent 94e9ae6f53
commit 4ea554e681

View File

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