diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-25 21:12:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-25 21:12:00 +0000 |
commit | b1c7f076cfb944c320892ac58600fd96c252f53e (patch) | |
tree | 9ef07fc475a2353f85a69b556bf49b9a7989bd06 /tools/source | |
parent | 617427806d0a1aa7d8b3f3a6977e7bc2a292e73b (diff) |
assert on loading timestamp in kde80951-1.html
Change-Id: I32a9d6cc625537ab6e0940d93bf9a7544df370c8
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/inet/inetmsg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index 3a527124587d..cc3989a10066 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -327,8 +327,8 @@ bool INetRFC822Message::ParseDateField ( rDateTime.SetSec (ParseNumber (aDateField, nIndex)); nIndex++; rDateTime.SetNanoSec (0); - if ((aDateField[nIndex] == '+') || - (aDateField[nIndex] == '-') ) + const char cPossiblePlusMinus = nIndex < aDateField.getLength() ? aDateField[nIndex] : 0; + if (cPossiblePlusMinus == '+' || cPossiblePlusMinus == '-') { // Offset from GMT: "(+|-)HHMM". bool bEast = (aDateField[nIndex++] == '+'); |