diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index e17d71b29be..1da1198273e 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -2246,6 +2246,7 @@ nsCSSFrameConstructor::CreateGeneratedFrameFor(nsIFrame* aParentFram } else { *aFrame = nsnull; rv = NS_ERROR_NOT_AVAILABLE; + return rv; // Don't fall through to the warning below. } NS_ENSURE_SUCCESS(rv, rv); }