From 509a252295cfc971bdaa712193f8ca935aa88f9f Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Tue, 11 Mar 2003 15:37:32 +0000 Subject: [PATCH] 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 --- rdf/base/src/nsRDFService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdf/base/src/nsRDFService.cpp b/rdf/base/src/nsRDFService.cpp index 41d1ccc7af5..06c092c3958 100644 --- a/rdf/base/src/nsRDFService.cpp +++ b/rdf/base/src/nsRDFService.cpp @@ -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;