From 130401e0171f4a17511bfd8ba061a11dc10ff18a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 18 Aug 2021 21:40:24 -0600 Subject: [PATCH] sandbox: Correct handling of --rm_memory This option has no argument so we should not trip to skip one. Fix it. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 1103530941..151f42a5d6 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -690,7 +690,6 @@ static int add_args(char ***argvp, char *add_args[], int count) continue; } } else if (!strcmp(arg, "--rm_memory")) { - ap++; continue; } argv[argc++] = arg; -- 2.39.5