summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-09-28 16:20:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-28 16:20:54 +0200
commit252c76cdf8c9d516589d72ac228ac0d19fcb2021 (patch)
tree3ec04ed95b87e079d1015d8df2c6e34a543205f2 /firmware
parent71c97aeb9be6af16347b9e64615a9a774aee2f9e (diff)
downloadbarebox-252c76cdf8c9d516589d72ac228ac0d19fcb2021.tar.gz
barebox-252c76cdf8c9d516589d72ac228ac0d19fcb2021.tar.xz
gpiolib: Fix gpioinfo without args
Since a30ae2921a the gpioinfo command crashes when called without arguments. Fix it by using argv[1] when it actually exists, not when it doesn't exist. Fixes: a30ae2921a ("gpiolib: gpioinfo: add optional CONTROLLER command line argument") Reported-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions