Changeset 19506 for trunk/FACT++


Ignore:
Timestamp:
05/25/19 13:50:52 (5 years ago)
Author:
tbretz
Message:
Fixed a long existing bug which caused GetString to segfault if no string was primarily transmitted (s==-1)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventImp.cc

    r14005 r19506  
    194194string EventImp::GetString() const
    195195{
     196    if (GetSize()==0)
     197        return std::string();
     198
    196199    size_t s = GetSize()-1;
    197200    while (s>0 && GetText()[s]==0)
Note: See TracChangeset for help on using the changeset viewer.