diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-08-12 19:36:55 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-08-23 12:00:57 +0200 |
commit | 2dab5d2a46118c17cd2d31b8f83c63c93839dcb6 (patch) | |
tree | 384bfdbe3eb8ff1d0898f1e5ad6e52b360331db1 /include/libcamera | |
parent | 359ade5027d1856066e74f597db930012e92fb6c (diff) |
libcamera: controls: Initialize ControlInfoMap::idmap_
The compiler generated constructor does not initialize the
ControlInfoMap::idmap_ field.
Fix this by explicitly initializing the field in the class
declaration.
Reported-by: Coverity CID=354657
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera')
-rw-r--r-- | include/libcamera/controls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 9b0d5a54..6668e4bb 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -343,7 +343,7 @@ public: private: bool validate(); - const ControlIdMap *idmap_; + const ControlIdMap *idmap_ = nullptr; }; class ControlList |