mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
fix for bug 196094 - fix for topcrash in RDFServiceImpl::GetResource
reverse the order of the tests so we don't dereference off the end of a string patch by bz r=biesi, sr=alecf
This commit is contained in:
parent
e5518fb814
commit
ca96d4b9c0
@ -1021,7 +1021,7 @@ RDFServiceImpl::GetResource(const nsACString& aURI, nsIRDFResource** aResource)
|
||||
nsACString::const_iterator p, end;
|
||||
aURI.BeginReading(p);
|
||||
aURI.EndReading(end);
|
||||
while (IsLegalSchemeCharacter(*p) && p != end)
|
||||
while (p != end && IsLegalSchemeCharacter(*p))
|
||||
++p;
|
||||
|
||||
nsresult rv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user