system/nxinit: fix init parser to handle multiple quoted arguments

Fix argument parsing in init_parse_arguments() to properly handle
multiple quoted arguments like 'echo "arg1" "arg2"' by skipping
quote characters after processing them.

Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
fangpeina 2026-01-28 19:48:25 +08:00 committed by wangjianyu3
parent 75e0f9d033
commit 58045449ef

View file

@ -82,6 +82,7 @@ int init_parse_arguments(FAR char *buf, bool dup, int argc, FAR char **argv)
if (quote)
{
quote = false;
buf++;
}
else
{