fixes bug 338332 "netwerk/test/TestCookie logic error?" patch by davel, r=darin

This commit is contained in:
darin%meer.net 2006-06-22 22:22:44 +00:00
Родитель 4a2fa425a7
Коммит ac465186ba
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -115,7 +115,7 @@ CheckResult(const char *aLhs, PRUint32 aRule, const char *aRhs = nsnull)
{
switch (aRule) {
case MUST_BE_NULL:
return !aLhs;
return !aLhs || !*aLhs;
case MUST_EQUAL:
return !PL_strcmp(aLhs, aRhs);