more static analyser fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36843 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-07-06 07:14:45 +00:00
parent f8a14cae14
commit f7182588d0
5 changed files with 34 additions and 12 deletions

View file

@ -1133,14 +1133,10 @@ static id parsePlItem(pldata* pld)
len--;
// Allow for quoted values.
if (ptr[0] == '"' && len > 1)
if (len > 2 && '"' == ptr[0] && '"' == ptr[len - 1])
{
len--;
len -= 2;
ptr++;
if (ptr[len - 1] == '"')
{
len--;
}
}
if (type == 'I')
{