[FIXUP/OFW] remove the last empty string for bootargs

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-09-10 13:24:49 +08:00 committed by Meco Man
parent 06211b8be1
commit 8c456c5e33
1 changed files with 5 additions and 0 deletions

View File

@ -386,6 +386,11 @@ const char *rt_ofw_bootargs_select(const char *key, int index)
{
*(char *)ch++ = '\0';
}
if (*ch == '\0')
{
/* space in the end */
--bootargs_nr;
}
--ch;
}