fix (rather theoretical) off-by-one

This commit is contained in:
Oswald Buddenhagen
2009-05-05 19:41:53 +02:00
parent 0b802b31c8
commit b590b6adc1

View File

@@ -3304,7 +3304,7 @@ void GdbEngine::handleDebuggingHelperValue2(const GdbResultRecord &record,
QByteArray out = output.data();
int markerPos = out.indexOf('"') + 1; // position of 'success marker'
if (markerPos == -1 || out.at(markerPos) == 'f') { // 't' or 'f'
if (markerPos == 0 || out.at(markerPos) == 'f') { // 't' or 'f'
// custom dumper produced no output
data.setError(strNotInScope);
insertData(data);