]> git.sesse.net Git - mlt/commitdiff
kino/filehandler.cc: initialize variables
authorMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 31 Jul 2012 07:58:58 +0000 (09:58 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 6 Aug 2012 16:37:26 +0000 (18:37 +0200)
Fixes Coverity CID 709443: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member ""everyNthFrame"" is not initialized in this constructor nor in any functions that it calls.
Non-static class member ""framesToSkip"" is not initialized in this constructor nor in any functions that it calls.
Non-static class member ""maxFileSize"" is not initialized in this constructor nor in any functions that it calls.
Non-static class member ""timeStamp"" is not initialized in this constructor nor in any functions that it calls.

src/modules/kino/filehandler.cc

index 244ba24186b8b56dbcda1f33374cde97e3948ebd..936025c1397ae4fad2f02ca331a75ad854ce9e8f 100644 (file)
@@ -117,6 +117,10 @@ FileHandler::FileHandler() : done( false ), autoSplit( false ), maxFrameCount( 9
                framesWritten( 0 ), filename( "" )
 {
        /* empty body */
+       timeStamp = 0;
+       everyNthFrame = 0;
+       framesToSkip = 0;
+       maxFileSize = 0;
 }