diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-06-10 15:37:25 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-06-11 15:56:36 +0200 |
commit | cefe067c5bdb4098fae3858289d629b74a3d9236 (patch) | |
tree | fe05d8d0f537dfc08c6a2d2472c20f9afed6529e /test | |
parent | d9a468aaac2a58d36d0f65ac54aae29e72f2482a (diff) |
libcamera: ipa_manager: Fix handling of unset LIBCAMERA_IPA_MODULE_PATH
If the environment variable LIBCAMERA_IPA_MODULE_PATH is not set
utils::secure_getenv() will return a nullptr. Assigning a nullptr to a
std::string is not valid and results in a crash,
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Fix this by operating directly on the returned char array instead of
turning it into a std::string.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions