mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
Fix for bug 212090. nsInMemoryDataSource:GetSource() doesn't iterate over assertions correctly.
r=ben, sr=ben
This commit is contained in:
parent
20c4cde927
commit
48638b2afa
@ -1089,8 +1089,8 @@ InMemoryDataSource::GetSource(nsIRDFResource* property,
|
||||
|
||||
NS_AUTOLOCK(mLock);
|
||||
|
||||
for (Assertion* as = GetReverseArcs(target); as != nsnull; as = as->mNext) {
|
||||
if ((property == as->u.as.mProperty) && (tv == (as->u.as.mTruthValue))) {
|
||||
for (Assertion* as = GetReverseArcs(target); as; as = as->u.as.mInvNext) {
|
||||
if ((property == as->u.as.mProperty) && (tv == as->u.as.mTruthValue)) {
|
||||
*source = as->mSource;
|
||||
NS_ADDREF(*source);
|
||||
return NS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user