mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 982302 - Braces are missing in nsBaseURLParser::ParseURL. r=mcmanus
This commit is contained in:
parent
e549835079
commit
e784c5215a
@ -147,12 +147,13 @@ nsBaseURLParser::ParseURL(const char *spec, int32_t specLen,
|
||||
// spec = <path-no-slashes-or-colon>
|
||||
//
|
||||
SET_RESULT(scheme, 0, -1);
|
||||
if (authorityLen || pathLen)
|
||||
if (authorityLen || pathLen) {
|
||||
ParseAfterScheme(spec, specLen,
|
||||
authorityPos, authorityLen,
|
||||
pathPos, pathLen);
|
||||
OFFSET_RESULT(authority, offset);
|
||||
OFFSET_RESULT(path, offset);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user