Found by Coverity:

CID 709305: Uninitialized scalar variable (UNINIT)
Declaring variable "info".
191        ItemInfo info;
Using uninitialized value "info": field "info".track is uninitialized when 
calling "EffectStackEdit::transferParamDesc(QDomElement const &, ItemInfo, 
bool)". [show details]
192        m_effectEdit->transferParamDesc(QDomElement(), info, false);
193    }
194}
---
 src/definitions.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/definitions.h b/src/definitions.h
index 1e03945..a48306e 100644
--- a/src/definitions.h
+++ b/src/definitions.h
@@ -83,7 +83,8 @@ struct TrackInfo {
 typedef QMap<QString, QString> stringMap;
 typedef QMap <int, QMap <int, QByteArray> > audioByteArray;
 
-struct ItemInfo {
+class ItemInfo {
+public:
     /** startPos is the position where the clip starts on the track */
     GenTime startPos;
     /** endPos is the duration where the clip ends on the track */
@@ -93,6 +94,7 @@ struct ItemInfo {
     /** cropDuration is the duration of the clip */
     GenTime cropDuration;
     int track;
+    ItemInfo() : track(0) {};
 };
 
 struct TransitionInfo {
-- 
1.7.10.4


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Kdenlive-devel mailing list
Kdenlive-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kdenlive-devel

Reply via email to