Ticket #5097: libs_libmythtv_ThreadedFileWriter.cpp-init-in-ctor.patch

File libs_libmythtv_ThreadedFileWriter.cpp-init-in-ctor.patch, 940 bytes (added by Erik Hovland <erik@…>, 12 years ago)

init write_is_blocked

  • libs/libmythtv/ThreadedFileWriter.cpp

    syncer, write_is_blocked and writer are not initialized in the ctor.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/ThreadedFileWriter.cpp |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/libs/libmythtv/ThreadedFileWriter.cpp b/libs/libmythtv/ThreadedFileWriter.cpp
    index 2334528..ac90f85 100644
    a b ThreadedFileWriter::ThreadedFileWriter(const QString &fname, 
    123123    mode(pmode),                         fd(-1),
    124124    // state
    125125    no_writes(false),                    flush(false),
    126     in_dtor(false),                      ignore_writes(false),
    127     tfw_min_write_size(0),
     126    write_is_blocked(false),             in_dtor(false),
     127    ignore_writes(false),                tfw_min_write_size(0),
    128128    // buffer position state
    129129    rpos(0),                             wpos(0),
    130130    written(0),