sandbox: Ensure that long-options array is terminated
authorSimon Glass <sjg@chromium.org>
Mon, 3 Feb 2020 14:36:04 +0000 (07:36 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commit1c8c47ec802af33acf02acb6c7b09e317c850711
treedfd22eb8c5af4c8eda466e94e42f5688aca4141d
parent89cdb0b583b9bd98e9d73b1a56d097ed494c3046
sandbox: Ensure that long-options array is terminated

The last member of this array is supposed to be all zeroes according to
the getopt_long() man page. Fix the function to do this.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c