summaryrefslogtreecommitdiff
path: root/Documentation/conf.py
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-06-10 13:43:48 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-06-10 23:05:04 +0200
commit238919be5949a0bc632920cbd5b58cc4a5ca4678 (patch)
tree1dc3f0240fbf7990c2c08d69370145270288e752 /Documentation/conf.py
parent33534000275020cacaeddde6bee7f98377bf1170 (diff)
cam: Fix cam --help crash
The cam utility does not terminate correctly if invoked with only --help. It prints the help information and then segfaults due to the application incorrectly handling the return value. Fix this by moving the return code check of the option parsing to main(). Reported-by: Emmanuel Arias <eamanu@eamanu.com> Suggested-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Documentation/conf.py')
0 files changed, 0 insertions, 0 deletions