mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
shared/bootspec: use isempty where appropriate
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user