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 Xiang Xiao
parent d79d8107b3
commit 1d7d4fe67e

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
{