[RFC PATCH v1 01/12] apps: lc-compliance: Initialize `CameraManager` pointer in `Environment`
Paul Elder
paul.elder at ideasonboard.com
Thu Jan 9 23:15:11 CET 2025
On Fri, Dec 20, 2024 at 03:08:08PM +0000, Barnabás Pőcze wrote:
> Do not leave it unitialized.
>
> Signed-off-by: Barnabás Pőcze <pobrn at protonmail.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
> ---
> src/apps/lc-compliance/environment.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/apps/lc-compliance/environment.h b/src/apps/lc-compliance/environment.h
> index 543e5372f..834c722ef 100644
> --- a/src/apps/lc-compliance/environment.h
> +++ b/src/apps/lc-compliance/environment.h
> @@ -23,5 +23,5 @@ private:
> Environment() = default;
>
> std::string cameraId_;
> - libcamera::CameraManager *cm_;
> + libcamera::CameraManager *cm_ = nullptr;
> };
> --
> 2.47.1
>
>
More information about the libcamera-devel
mailing list