diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-03-26 16:28:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-03-26 16:28:16 +0000 |
commit | 59b21226f5c5ddafb81acd281723a390fad53c42 (patch) | |
tree | 7914ee8d2412a5584ac2ca5aa20966c6809c4792 /bin/ls | |
parent | 32140f68376c2e16a3ce40bf9d5e0edc37cb1a6f (diff) |
Simplify argument parsing of vmctl stop
The previous argument parsing logic had at least three bugs:
a copy-paste error led to an off-by-one and a printf "%s" NULL,
as reported by Preben Guldberg. A previous commit led to a dead
else branch and a use of uninitialized. This can all be avoided
by reworking the logic so as to be readable.
Prompted by a diff from Preben
ok dv
Diffstat (limited to 'bin/ls')
0 files changed, 0 insertions, 0 deletions