Changeset 10277


Ignore:
Timestamp:
03/31/11 16:07:09 (14 years ago)
Author:
tbretz
Message:
Fixed an exception when Get<string> returned in empty string in case of failure.
File:
1 edited

Legend:

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

    r10270 r10277  
    696696string Converter::GetString(const void *dat, int size) const
    697697{
    698     return Get<string>(dat, size).substr(1);
     698    const string s = Get<string>(dat, size);
     699    return s.empty() ? s : s.substr(1);
    699700}
    700701
Note: See TracChangeset for help on using the changeset viewer.