[Kdenlive-devel] [PATCH 06/16] meltjob.cpp: initialize addClipToProject

Mikko Rapeli mikko.rapeli at iki.fi
Fri Aug 10 12:17:07 UTC 2012


Fixes Coverity CID 709312: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member ""addClipToProject"" is not initialized in this constructor nor in any functions that it calls.
---
 src/projecttree/meltjob.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/projecttree/meltjob.cpp b/src/projecttree/meltjob.cpp
index 19d29e1..32105b1 100644
--- a/src/projecttree/meltjob.cpp
+++ b/src/projecttree/meltjob.cpp
@@ -34,7 +34,8 @@ static void consumer_frame_render(mlt_consumer, MeltJob * self, mlt_frame /*fram
     self->emitFrameNumber();
 }
 
-MeltJob::MeltJob(CLIPTYPE cType, const QString &id, QStringList parameters) : AbstractClipJob(MLTJOB, cType, id, parameters), 
+MeltJob::MeltJob(CLIPTYPE cType, const QString &id, QStringList parameters) : AbstractClipJob(MLTJOB, cType, id, parameters),
+    addClipToProject(0),
     m_producer(NULL),
     m_profile(NULL),
     m_consumer(NULL),
-- 
1.7.10.4





More information about the Kdenlive mailing list