Ticket #5519: libs_libmythtv-uninit-ctor.patch

File libs_libmythtv-uninit-ctor.patch, 855 bytes (added by Erik Hovland <erik@…>, 11 years ago)

adds cardid init to ctor

  • mythtv/libs/libmythtv/dtvmultiplex.h

    Any class that doesn't initialize all members in the ctor.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythtv/dtvmultiplex.h |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/dtvmultiplex.h b/mythtv/libs/libmythtv/dtvmultiplex.h
    index 194f2e5..e793719 100644
    a b class ScanDTVTransport : public DTVMultiplex 
    8484{
    8585  public:
    8686    ScanDTVTransport() :
    87         DTVMultiplex(), tuner_type(DTVTunerType::kTunerTypeUnknown) { }
     87        DTVMultiplex(), tuner_type(DTVTunerType::kTunerTypeUnknown),
     88        cardid(0) { }
    8889    ScanDTVTransport(const DTVMultiplex &mplex, DTVTunerType tt, uint cid) :
    8990        DTVMultiplex(mplex), tuner_type(tt), cardid(cid) { }
    9091    virtual ~ScanDTVTransport() {}