summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-29 19:59:02 -0400
committerIan Moffett <ian@osmora.org>2025-06-29 19:59:02 -0400
commitdb5daa6d7e0137e19c73d303ffd8744534c006da (patch)
treeeb7ab945fa003c8bb9341f82c58cd8cf26cbfd8d /usr.bin
parentc1fa9c578fa6c6b329aeb7118afb55306134a301 (diff)
usr.bin: osh: Ensure argv is zerored per command
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/osh/osh.c1
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();