Changeset 10967 for trunk/FACT++


Ignore:
Timestamp:
06/09/11 23:04:47 (13 years ago)
Author:
tbretz
Message:
Check for NULL in Close
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r10965 r10967  
    229229    virtual bool Close(RUN_TAIL *tail= 0)
    230230    {
    231         fOut.seekp(fPosTail);
    232 
    233         WriteValue(uint32_t(1));
    234         fOut.write(reinterpret_cast<char*>(tail), sizeof(RUN_TAIL));
     231        if (tail)
     232        {
     233            fOut.seekp(fPosTail);
     234
     235            WriteValue(uint32_t(1));
     236            fOut.write(reinterpret_cast<char*>(tail), sizeof(RUN_TAIL));
     237        }
    235238
    236239        if (!fOut)
Note: See TracChangeset for help on using the changeset viewer.