Ticket #5104: libs_libmythtv_dsmccbiop.h-init-in-BiopMessage-ctor.patch

File libs_libmythtv_dsmccbiop.h-init-in-BiopMessage-ctor.patch, 802 bytes (added by Erik Hovland <erik@…>, 12 years ago)

init member vars in BiopMessage?

  • libs/libmythtv/dsmccbiop.h

    Some more ctor initing.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythtv/dsmccbiop.h |    7 ++++++-
     1 files changed, 6 insertions(+), 1 deletions(-)
    
    diff --git a/libs/libmythtv/dsmccbiop.h b/libs/libmythtv/dsmccbiop.h
    index 7379b50..755c83d 100644
    a b class ObjCarousel; 
    171171class BiopMessage
    172172{
    173173  public:
    174     BiopMessage() : m_objinfo(NULL), m_objkind(NULL) {}
     174    BiopMessage() :
     175        m_version_major(0), m_version_minor(0),
     176        m_message_size(0),  m_objkind_len(0),
     177        m_objinfo_len(0),  m_objinfo(NULL),
     178        m_objkind(NULL) {}
    175179    ~BiopMessage();
     180
    176181    bool Process(DSMCCCacheModuleData *cachep, DSMCCCache *cache,
    177182                 unsigned char *data, unsigned long *curp);
    178183