assert on loading timestamp in kde80951-1.html

Change-Id: I32a9d6cc625537ab6e0940d93bf9a7544df370c8
This commit is contained in:
Caolán McNamara
2014-11-25 21:12:00 +00:00
parent 617427806d
commit b1c7f076cf

View File

@@ -327,8 +327,8 @@ bool INetRFC822Message::ParseDateField (
rDateTime.SetSec (ParseNumber (aDateField, nIndex)); nIndex++; rDateTime.SetSec (ParseNumber (aDateField, nIndex)); nIndex++;
rDateTime.SetNanoSec (0); rDateTime.SetNanoSec (0);
if ((aDateField[nIndex] == '+') || const char cPossiblePlusMinus = nIndex < aDateField.getLength() ? aDateField[nIndex] : 0;
(aDateField[nIndex] == '-') ) if (cPossiblePlusMinus == '+' || cPossiblePlusMinus == '-')
{ {
// Offset from GMT: "(+|-)HHMM". // Offset from GMT: "(+|-)HHMM".
bool bEast = (aDateField[nIndex++] == '+'); bool bEast = (aDateField[nIndex++] == '+');