sim: run: fix crash in argc==0 error situation
authorMike Frysinger <vapier@gentoo.org>
Mon, 15 Nov 2021 08:32:26 +0000 (03:32 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 15 Nov 2021 08:32:26 +0000 (03:32 -0500)
commit7770da971420cd3327326b6b8720383d23b5dbd3
treed27d8a7c92f3cbb05629357f6dee87db148c260b
parent145a603abc767c2a1e6fe7755c10686353bbcc8f
sim: run: fix crash in argc==0 error situation

The new argv processing code assumed that we were always passed a
command line.  If we weren't, make sure we don't crash before we
get a chance to output an error message about incorrect usage.
sim/common/sim-options.c