From: Anton Potapov Date: Mon, 25 May 2020 08:59:28 +0000 (+0300) Subject: GAPI: fix uninitialized variables in Fluid X-Git-Tag: submit/tizen/20210224.033012~2^2~188^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be9f3826d76703e4e38dd1dc45ebc8a911ce8b07;p=platform%2Fupstream%2Fopencv.git GAPI: fix uninitialized variables in Fluid --- diff --git a/modules/gapi/include/opencv2/gapi/fluid/gfluidbuffer.hpp b/modules/gapi/include/opencv2/gapi/fluid/gfluidbuffer.hpp index de16eb0..8130e2b 100644 --- a/modules/gapi/include/opencv2/gapi/fluid/gfluidbuffer.hpp +++ b/modules/gapi/include/opencv2/gapi/fluid/gfluidbuffer.hpp @@ -87,7 +87,7 @@ public: private: std::unique_ptr m_priv; - const Cache* m_cache; + const Cache* m_cache = nullptr; }; class GAPI_EXPORTS Buffer diff --git a/modules/gapi/src/backends/fluid/gfluidbuffer_priv.hpp b/modules/gapi/src/backends/fluid/gfluidbuffer_priv.hpp index d20d280..d6fdc0e 100644 --- a/modules/gapi/src/backends/fluid/gfluidbuffer_priv.hpp +++ b/modules/gapi/src/backends/fluid/gfluidbuffer_priv.hpp @@ -245,7 +245,7 @@ class GAPI_EXPORTS Buffer::Priv // Coordinate starting from which this buffer is assumed // to be read (with border not being taken into account) - int m_readStart; + int m_readStart = 0; cv::Rect m_roi; friend void debugBufferPriv(const Buffer& p, std::ostream &os);