diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-06-10 13:43:48 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-06-10 23:05:04 +0200 |
commit | 238919be5949a0bc632920cbd5b58cc4a5ca4678 (patch) | |
tree | 1dc3f0240fbf7990c2c08d69370145270288e752 /package/gentoo/media-libs | |
parent | 33534000275020cacaeddde6bee7f98377bf1170 (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 'package/gentoo/media-libs')
0 files changed, 0 insertions, 0 deletions