diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-29 19:59:02 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-29 19:59:02 -0400 |
commit | db5daa6d7e0137e19c73d303ffd8744534c006da (patch) | |
tree | eb7ab945fa003c8bb9341f82c58cd8cf26cbfd8d | |
parent | c1fa9c578fa6c6b329aeb7118afb55306134a301 (diff) |
usr.bin: osh: Ensure argv is zerored per command
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/osh/osh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c index 0e017e4..f36ba1e 100644 --- a/usr.bin/osh/osh.c +++ b/usr.bin/osh/osh.c @@ -390,6 +390,7 @@ main(int argc, char **argv) puts(WELCOME); while (running) { + memset(prog_argv, 0, sizeof(prog_argv)); fputs(PROMPT, stdout); input = getstr(); |