[FIXUP/OFW] remove the last empty string for bootargs
Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
parent
06211b8be1
commit
8c456c5e33
|
@ -386,6 +386,11 @@ const char *rt_ofw_bootargs_select(const char *key, int index)
|
||||||
{
|
{
|
||||||
*(char *)ch++ = '\0';
|
*(char *)ch++ = '\0';
|
||||||
}
|
}
|
||||||
|
if (*ch == '\0')
|
||||||
|
{
|
||||||
|
/* space in the end */
|
||||||
|
--bootargs_nr;
|
||||||
|
}
|
||||||
--ch;
|
--ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue