diff --git a/content/base/src/nsRange.cpp b/content/base/src/nsRange.cpp index 17c12fa11db4..5add05e022ee 100644 --- a/content/base/src/nsRange.cpp +++ b/content/base/src/nsRange.cpp @@ -267,7 +267,7 @@ nsIDOMNode* nsRange::CommonParent(nsIDOMNode* aNode1, nsIDOMNode* aNode2) if (!NS_SUCCEEDED(res)) { NS_NOTREACHED("nsRange::CommonParent"); - goto errorLabel; + return nsnull; } return theParent; } diff --git a/layout/base/src/nsRange.cpp b/layout/base/src/nsRange.cpp index 17c12fa11db4..5add05e022ee 100644 --- a/layout/base/src/nsRange.cpp +++ b/layout/base/src/nsRange.cpp @@ -267,7 +267,7 @@ nsIDOMNode* nsRange::CommonParent(nsIDOMNode* aNode1, nsIDOMNode* aNode2) if (!NS_SUCCEEDED(res)) { NS_NOTREACHED("nsRange::CommonParent"); - goto errorLabel; + return nsnull; } return theParent; }